Class: WorkOS::AgentRegistrationClaimCompletedData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/agent_registration_claim_completed_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  agent_registration_id: :agent_registration_id,
  completed_by_attempt_id: :completed_by_attempt_id,
  claimed_by: :claimed_by,
  completed_at: :completed_at,
  created_at: :created_at,
  updated_at: :updated_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentRegistrationClaimCompletedData

Returns a new instance of AgentRegistrationClaimCompletedData.



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 28

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @agent_registration_id = hash[:agent_registration_id]
  @completed_by_attempt_id = hash[:completed_by_attempt_id]
  @claimed_by = hash[:claimed_by] ? WorkOS::AgentRegistrationClaimCompletedDataClaimedBy.new(hash[:claimed_by]) : nil
  @completed_at = hash[:completed_at]
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
end

Instance Attribute Details

#agent_registration_idObject

Returns the value of attribute agent_registration_id.



18
19
20
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 18

def agent_registration_id
  @agent_registration_id
end

#claimed_byObject

Returns the value of attribute claimed_by.



18
19
20
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 18

def claimed_by
  @claimed_by
end

#completed_atObject

Returns the value of attribute completed_at.



18
19
20
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 18

def completed_at
  @completed_at
end

#completed_by_attempt_idObject

Returns the value of attribute completed_by_attempt_id.



18
19
20
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 18

def completed_by_attempt_id
  @completed_by_attempt_id
end

#created_atObject

Returns the value of attribute created_at.



18
19
20
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 18

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



18
19
20
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 18

def id
  @id
end

#objectObject

Returns the value of attribute object.



18
19
20
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 18

def object
  @object
end

#updated_atObject

Returns the value of attribute updated_at.



18
19
20
# File 'lib/workos/shared/agent_registration_claim_completed_data.rb', line 18

def updated_at
  @updated_at
end