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 }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CreatePasswordResetToken
constructor
A new instance of CreatePasswordResetToken.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ CreatePasswordResetToken
Returns a new instance of CreatePasswordResetToken.
13 14 15 16 |
# File 'lib/workos/user_management/create_password_reset_token.rb', line 13 def initialize(json) hash = self.class.normalize(json) @email = hash[:email] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
11 12 13 |
# File 'lib/workos/user_management/create_password_reset_token.rb', line 11 def email @email end |