Module: SAML2::OrganizationAndContacts

Included in:
Entity, Role
Defined in:
lib/saml2/organization_and_contacts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contactsArray<Contact>

Returns:



31
32
33
# File 'lib/saml2/organization_and_contacts.rb', line 31

def contacts
  @contacts ||= load_object_array(xml, "md:ContactPerson", Contact)
end

#organizationOrganization?

Returns:



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.

Parameters:

  • node (Nokogiri::XML::Element)


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

#initializeObject



10
11
12
13
# File 'lib/saml2/organization_and_contacts.rb', line 10

def initialize
  @organization = nil
  @contacts = []
end