Class: WorkOS::AgentRegistrationClaim

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

Constant Summary collapse

HASH_ATTRS =
{
  id: :id,
  claim_completion: :claim_completion,
  created_at: :created_at,
  updated_at: :updated_at,
  expires_at: :expires_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentRegistrationClaim

Returns a new instance of AgentRegistrationClaim.



22
23
24
25
26
27
28
29
# File 'lib/workos/agents/agent_registration_claim.rb', line 22

def initialize(json)
  hash = self.class.normalize(json)
  @id = hash[:id]
  @claim_completion = hash[:claim_completion] ? WorkOS::AgentRegistrationClaimClaimCompletion.new(hash[:claim_completion]) : nil
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
  @expires_at = hash[:expires_at]
end

Instance Attribute Details

#claim_completionObject

Returns the value of attribute claim_completion.



15
16
17
# File 'lib/workos/agents/agent_registration_claim.rb', line 15

def claim_completion
  @claim_completion
end

#created_atObject

Returns the value of attribute created_at.



15
16
17
# File 'lib/workos/agents/agent_registration_claim.rb', line 15

def created_at
  @created_at
end

#expires_atObject

Returns the value of attribute expires_at.



15
16
17
# File 'lib/workos/agents/agent_registration_claim.rb', line 15

def expires_at
  @expires_at
end

#idObject

Returns the value of attribute id.



15
16
17
# File 'lib/workos/agents/agent_registration_claim.rb', line 15

def id
  @id
end

#updated_atObject

Returns the value of attribute updated_at.



15
16
17
# File 'lib/workos/agents/agent_registration_claim.rb', line 15

def updated_at
  @updated_at
end