module SAML2::OrganizationAndContacts
Attributes
Public Class Methods
Source
# File lib/saml2/organization_and_contacts.rb, line 10 def initialize @organization = nil @contacts = [] end
Public Instance Methods
Source
# File lib/saml2/organization_and_contacts.rb, line 31 def contacts @contacts ||= load_object_array(xml, "md:ContactPerson", Contact) end
@return [Array<Contact>]
Source
# File lib/saml2/organization_and_contacts.rb, line 16 def from_xml(node) remove_instance_variable(:@organization) @contacts = nil super end
(see Base#from_xml
)
Calls superclass method
Source
# 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
@return [Organization, nil]
Protected Instance Methods
Source
# File lib/saml2/organization_and_contacts.rb, line 37 def build(builder) organization&.build(builder) contacts.each do |contact| contact.build(builder) end end