Class: Rafflesia::MagicAuthSendRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  email: :email
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MagicAuthSendRequest

Returns a new instance of MagicAuthSendRequest.



14
15
16
17
18
# File 'lib/rafflesia/auth/magic_auth_send_request.rb', line 14

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

Instance Attribute Details

#emailObject

Returns the value of attribute email.



12
13
14
# File 'lib/rafflesia/auth/magic_auth_send_request.rb', line 12

def email
  @email
end