Class: WorkOS::AgentAdminLinkClaimAttemptToExternalUserRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentAdminLinkClaimAttemptToExternalUserRequest
- 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
-
#claim_attempt_token ⇒ Object
Returns the value of attribute claim_attempt_token.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentAdminLinkClaimAttemptToExternalUserRequest
constructor
A new instance of AgentAdminLinkClaimAttemptToExternalUserRequest.
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_token ⇒ Object
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_id ⇒ Object
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 |
#type ⇒ Object
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 |
#user ⇒ Object
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 |