Class: WorkOS::AuthenticateResponseImpersonator

Inherits:
Types::BaseModel
  • Object
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

Instance Method Summary collapse

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