Class: Rafflesia::CsrfTokenData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/auth/csrf_token_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  csrf_token: :csrf_token
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject

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