Class: Rafflesia::PasswordResetStartData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#emailObject

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_urlObject

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