Class: Rafflesia::MagicAuthRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  code: :code,
  email: :email
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MagicAuthRequest

Returns a new instance of MagicAuthRequest.



17
18
19
20
21
22
# File 'lib/rafflesia/auth/magic_auth_request.rb', line 17

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @code = hash[:code]
  @email = hash[:email]
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



13
14
15
# File 'lib/rafflesia/auth/magic_auth_request.rb', line 13

def code
  @code
end

#emailObject

Returns the value of attribute email.



13
14
15
# File 'lib/rafflesia/auth/magic_auth_request.rb', line 13

def email
  @email
end