Class: SAML::Core::StatusResponse
- Inherits:
-
Object
- Object
- SAML::Core::StatusResponse
- Defined in:
- lib/saml/core/status_response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/saml/core/status_response.rb', line 5 def id @id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/saml/core/status_response.rb', line 7 def status @status end |
#version ⇒ Object (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
18 19 20 |
# File 'lib/saml/core/status_response.rb', line 18 def success? status.success? end |