Class: WorkOS::CreatePasswordReset

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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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_passwordObject

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

#tokenObject

Returns the value of attribute token.



12
13
14
# File 'lib/workos/user_management/create_password_reset.rb', line 12

def token
  @token
end