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