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