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