Class: WorkOS::CreatePasswordResetToken
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreatePasswordResetToken
- Defined in:
- lib/workos/user_management/create_password_reset_token.rb
Constant Summary collapse
- HASH_ATTRS =
{ email: :email, locale: :locale }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#locale ⇒ Object
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreatePasswordResetToken
constructor
A new instance of CreatePasswordResetToken.
Constructor Details
#initialize(json) ⇒ CreatePasswordResetToken
Returns a new instance of CreatePasswordResetToken.
16 17 18 19 20 |
# File 'lib/workos/user_management/create_password_reset_token.rb', line 16 def initialize(json) hash = self.class.normalize(json) @email = hash[:email] @locale = hash[:locale] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
12 13 14 |
# File 'lib/workos/user_management/create_password_reset_token.rb', line 12 def email @email end |
#locale ⇒ Object
Returns the value of attribute locale.
12 13 14 |
# File 'lib/workos/user_management/create_password_reset_token.rb', line 12 def locale @locale end |