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
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
20 21 22 |
# File 'lib/saml/kit/respondable.rb', line 20 def in_response_to to_h.fetch(name, {}).fetch('InResponseTo', nil) end |
#query_string_parameter ⇒ Object
12 13 14 |
# File 'lib/saml/kit/respondable.rb', line 12 def query_string_parameter 'SAMLResponse' end |
#status_code ⇒ Object
16 17 18 |
# File 'lib/saml/kit/respondable.rb', line 16 def status_code to_h.fetch(name, {}).fetch('Status', {}).fetch('StatusCode', {}).fetch('Value', nil) end |
#success? ⇒ Boolean
24 25 26 |
# File 'lib/saml/kit/respondable.rb', line 24 def success? Namespaces::SUCCESS == status_code end |