Class: Rafflesia::CsrfTokenData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CsrfTokenData
- Defined in:
- lib/rafflesia/auth/csrf_token_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ csrf_token: :csrf_token }.freeze
Instance Attribute Summary collapse
-
#csrf_token ⇒ Object
Returns the value of attribute csrf_token.
Instance Method Summary collapse
-
#initialize(json) ⇒ CsrfTokenData
constructor
A new instance of CsrfTokenData.
Constructor Details
#initialize(json) ⇒ CsrfTokenData
Returns a new instance of CsrfTokenData.
14 15 16 17 18 |
# File 'lib/rafflesia/auth/csrf_token_data.rb', line 14 def initialize(json) super() hash = self.class.normalize(json) @csrf_token = hash[:csrf_token] end |
Instance Attribute Details
#csrf_token ⇒ Object
Returns the value of attribute csrf_token.
12 13 14 |
# File 'lib/rafflesia/auth/csrf_token_data.rb', line 12 def csrf_token @csrf_token end |