Module: SAML2::OrganizationAndContacts
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#contacts ⇒ Object
26 27 28 |
# File 'lib/saml2/organization_and_contacts.rb', line 26 def contacts @contacts ||= load_object_array(@root, 'md:ContactPerson', Contact) end |
#organization ⇒ Object
19 20 21 22 23 24 |
# File 'lib/saml2/organization_and_contacts.rb', line 19 def organization unless instance_variable_defined?(:@organization) @organization = Organization.from_xml(@root.at_xpath('md:Organization', Namespaces::ALL)) end @organization end |
Instance Method Details
#from_xml(node) ⇒ Object
13 14 15 16 17 |
# File 'lib/saml2/organization_and_contacts.rb', line 13 def from_xml(node) remove_instance_variable(:@organization) @contacts = nil super end |
#initialize ⇒ Object
8 9 10 11 |
# File 'lib/saml2/organization_and_contacts.rb', line 8 def initialize @organization = nil @contacts = [] end |