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.
5 6 7 |
# File 'lib/saml/kit/respondable.rb', line 5 def request_id @request_id end |
Instance Method Details
#in_response_to ⇒ Object
Returns the /InResponseTo attribute.
23 24 25 |
# File 'lib/saml/kit/respondable.rb', line 23 def in_response_to to_h.fetch(name, {}).fetch('InResponseTo', nil) end |
#status_code ⇒ Object
Returns the /Status/StatusCode@Value
18 19 20 |
# File 'lib/saml/kit/respondable.rb', line 18 def status_code to_h.fetch(name, {}).fetch('Status', {}).fetch('StatusCode', {}).fetch('Value', nil) end |
#success? ⇒ Boolean
Returns true if the Status code is #Namespaces::SUCCESS
28 29 30 |
# File 'lib/saml/kit/respondable.rb', line 28 def success? Namespaces::SUCCESS == status_code end |