Class: SAML::Core::StatusResponse

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

Direct Known Subclasses

Response

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end

#versionObject (readonly)

Returns the value of attribute version.



6
7
8
# File 'lib/saml/core/status_response.rb', line 6

def version
  @version
end

Class Method Details

.from_xml(xml) ⇒ Object



9
# File 'lib/saml/core/status_response.rb', line 9

def self.from_xml(xml); new.from_xml(xml); end

Instance Method Details

#from_xml(xml) ⇒ Object



11
12
13
14
15
16
# File 'lib/saml/core/status_response.rb', line 11

def from_xml(xml)
  @id      = xml.attributes["ID"]
  @version = xml.attributes["Version"]
  @status  = Status.from_xml(xml.get_elements("samlp:Status").first)
  self
end

#success?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/saml/core/status_response.rb', line 18

def success?
  status.success?
end