Class: WorkOS::AgentRegistrationClaimCompletedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentRegistrationClaimCompletedData
- 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
-
#agent_registration_id ⇒ Object
Returns the value of attribute agent_registration_id.
-
#claimed_by ⇒ Object
Returns the value of attribute claimed_by.
-
#completed_at ⇒ Object
Returns the value of attribute completed_at.
-
#completed_by_attempt_id ⇒ Object
Returns the value of attribute completed_by_attempt_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#object ⇒ Object
Returns the value of attribute object.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentRegistrationClaimCompletedData
constructor
A new instance of AgentRegistrationClaimCompletedData.
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_id ⇒ Object
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_by ⇒ Object
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_at ⇒ Object
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_id ⇒ Object
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_at ⇒ Object
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 |
#id ⇒ Object
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 |
#object ⇒ Object
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_at ⇒ Object
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 |