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