Commit 88673a0
Changed files (2)
lib
saml
lib/saml/kit/metadata.rb
@@ -61,6 +61,18 @@ module Saml
@organization ||= Organization.new(at_xpath(xpath))
end
+ # @deprecated
+ def organization_name
+ Saml::Kit.deprecate('`organization_name` is deprecated. Use `organization.name`')
+ organization.name
+ end
+
+ # @deprecated
+ def organization_url
+ Saml::Kit.deprecate('`organization_url` is deprecated. Use `organization.url`')
+ organization.url
+ end
+
# Returns the Company
def contact_person_company
at_xpath('/md:EntityDescriptor/md:ContactPerson/md:Company').try(:text)
lib/saml/kit/organization.rb
@@ -19,18 +19,6 @@ module Saml
def url
at_xpath('./md:OrganizationURL').try(:text)
end
-
- # @deprecated
- def organization_name
- Saml::Kit.deprecate('`organization_name` is deprecated. Use `organization.name`')
- name
- end
-
- # @deprecated
- def organization_url
- Saml::Kit.deprecate('`organization_url` is deprecated. Use `organization.url`')
- url
- end
end
end
end