Class: SAML::Core::Subject

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/core/subject.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#name_idObject (readonly)

Returns the value of attribute name_id.



5
6
7
# File 'lib/saml/core/subject.rb', line 5

def name_id
  @name_id
end

Instance Method Details

#from_xml(xml) ⇒ Object



7
8
9
# File 'lib/saml/core/subject.rb', line 7

def from_xml(xml)
  @name_id = xml.get_elements('saml:NameID').text
end