Class: Rafflesia::MagicAuthRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MagicAuthRequest
- Defined in:
- lib/rafflesia/auth/magic_auth_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ code: :code, email: :email }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#email ⇒ Object
Returns the value of attribute email.
Instance Method Summary collapse
-
#initialize(json) ⇒ MagicAuthRequest
constructor
A new instance of MagicAuthRequest.
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
#code ⇒ Object
Returns the value of attribute code.
13 14 15 |
# File 'lib/rafflesia/auth/magic_auth_request.rb', line 13 def code @code end |
#email ⇒ Object
Returns the value of attribute email.
13 14 15 |
# File 'lib/rafflesia/auth/magic_auth_request.rb', line 13 def email @email end |