Class: SamlAuthenticatable::SamlResponse
- Inherits:
-
Object
- Object
- SamlAuthenticatable::SamlResponse
- Defined in:
- lib/devise_saml_authenticatable/saml_response.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
Instance Method Summary collapse
- #attribute_value_by_resource_key(key) ⇒ Object
-
#initialize(saml_response, attribute_map) ⇒ SamlResponse
constructor
A new instance of SamlResponse.
Constructor Details
#initialize(saml_response, attribute_map) ⇒ SamlResponse
Returns a new instance of SamlResponse.
7 8 9 10 |
# File 'lib/devise_saml_authenticatable/saml_response.rb', line 7 def initialize(saml_response, attribute_map) @attributes = ::SamlAuthenticatable::SamlMappedAttributes.new(saml_response.attributes, attribute_map) @raw_response = saml_response end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/devise_saml_authenticatable/saml_response.rb', line 5 def attributes @attributes end |
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
5 6 7 |
# File 'lib/devise_saml_authenticatable/saml_response.rb', line 5 def raw_response @raw_response end |
Instance Method Details
#attribute_value_by_resource_key(key) ⇒ Object
12 13 14 |
# File 'lib/devise_saml_authenticatable/saml_response.rb', line 12 def attribute_value_by_resource_key(key) attributes.value_by_resource_key(key) end |