Class: WorkOS::AgentAdminLinkClaimAttemptToExternalUserRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  type: :type,
  claim_attempt_token: :claim_attempt_token,
  user: :user,
  organization_id: :organization_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentAdminLinkClaimAttemptToExternalUserRequest

Returns a new instance of AgentAdminLinkClaimAttemptToExternalUserRequest.



20
21
22
23
24
25
26
# File 'lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request.rb', line 20

def initialize(json)
  hash = self.class.normalize(json)
  @type = hash[:type]
  @claim_attempt_token = hash[:claim_attempt_token]
  @user = hash[:user] ? WorkOS::AgentAdminLinkClaimAttemptToExternalUserRequestUser.new(hash[:user]) : nil
  @organization_id = hash[:organization_id]
end

Instance Attribute Details

#claim_attempt_tokenObject

Returns the value of attribute claim_attempt_token.



14
15
16
# File 'lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request.rb', line 14

def claim_attempt_token
  @claim_attempt_token
end

#organization_idObject

Returns the value of attribute organization_id.



14
15
16
# File 'lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request.rb', line 14

def organization_id
  @organization_id
end

#typeObject

Returns the value of attribute type.



14
15
16
# File 'lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request.rb', line 14

def type
  @type
end

#userObject

Returns the value of attribute user.



14
15
16
# File 'lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request.rb', line 14

def user
  @user
end