Module: SAML2::OrganizationAndContacts
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#from_xml(node) ⇒ void
Parse an XML element into this object.
- #initialize ⇒ Object
Instance Attribute Details
#contacts ⇒ Array<Contact>
31 32 33 |
# File 'lib/saml2/organization_and_contacts.rb', line 31 def contacts @contacts ||= load_object_array(xml, "md:ContactPerson", Contact) end |
#organization ⇒ Organization?
23 24 25 26 27 28 |
# File 'lib/saml2/organization_and_contacts.rb', line 23 def organization unless instance_variable_defined?(:@organization) @organization = Organization.from_xml(xml.at_xpath("md:Organization", Namespaces::ALL)) end @organization end |
Instance Method Details
#from_xml(node) ⇒ void
This method returns an undefined value.
Parse an XML element into this object.
16 17 18 19 20 |
# File 'lib/saml2/organization_and_contacts.rb', line 16 def from_xml(node) remove_instance_variable(:@organization) @contacts = nil super end |
#initialize ⇒ Object
10 11 12 13 |
# File 'lib/saml2/organization_and_contacts.rb', line 10 def initialize @organization = nil @contacts = [] end |