Class: WorkOS::AgentAdminLinkClaimAttemptToExternalUserRequestUser

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request_user.rb

Constant Summary collapse

HASH_ATTRS =
{
  email: :email,
  external_id: :external_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentAdminLinkClaimAttemptToExternalUserRequestUser

Returns a new instance of AgentAdminLinkClaimAttemptToExternalUserRequestUser.



16
17
18
19
20
# File 'lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request_user.rb', line 16

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

Instance Attribute Details

#emailObject

Returns the value of attribute email.



12
13
14
# File 'lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request_user.rb', line 12

def email
  @email
end

#external_idObject

Returns the value of attribute external_id.



12
13
14
# File 'lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request_user.rb', line 12

def external_id
  @external_id
end