Module: Saml::Kit::Respondable
- Extended by:
- ActiveSupport::Concern
- Included in:
- LogoutResponse, Response
- Defined in:
- lib/saml/kit/respondable.rb
Instance Attribute Summary collapse
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Instance Method Summary collapse
-
#in_response_to ⇒ Object
Returns the /InResponseTo attribute.
-
#status_code ⇒ Object
Returns the /Status/StatusCode@Value.
-
#success? ⇒ Boolean
Returns true if the Status code is #Namespaces::SUCCESS.
Instance Attribute Details
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
7 8 9 |
# File 'lib/saml/kit/respondable.rb', line 7 def request_id @request_id end |
Instance Method Details
#in_response_to ⇒ Object
Returns the /InResponseTo attribute.
25 26 27 |
# File 'lib/saml/kit/respondable.rb', line 25 def in_response_to at_xpath('./*/@InResponseTo').try(:value) end |
#status_code ⇒ Object
Returns the /Status/StatusCode@Value
20 21 22 |
# File 'lib/saml/kit/respondable.rb', line 20 def status_code at_xpath('./*/samlp:Status/samlp:StatusCode/@Value').try(:value) end |
#success? ⇒ Boolean
Returns true if the Status code is #Namespaces::SUCCESS
30 31 32 |
# File 'lib/saml/kit/respondable.rb', line 30 def success? Namespaces::SUCCESS == status_code end |