Class: WorkOS::AgentRegistrationClaim
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentRegistrationClaim
- 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
-
#claim_completion ⇒ Object
Returns the value of attribute claim_completion.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentRegistrationClaim
constructor
A new instance of AgentRegistrationClaim.
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_completion ⇒ Object
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_at ⇒ Object
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_at ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/workos/agents/agent_registration_claim.rb', line 15 def id @id end |
#updated_at ⇒ Object
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 |