Class: WorkOS::AuthenticateResponseImpersonator

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/user_management/authenticate_response_impersonator.rb

Constant Summary collapse

HASH_ATTRS =
{
  email: :email,
  reason: :reason
}.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) ⇒ AuthenticateResponseImpersonator

Returns a new instance of AuthenticateResponseImpersonator.



16
17
18
19
20
# File 'lib/workos/user_management/authenticate_response_impersonator.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @email = hash[:email]
  @reason = hash[:reason]
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#reasonObject

Returns the value of attribute reason.



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

def reason
  @reason
end