Class: WorkOS::AgentRegistrationCreatedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentRegistrationCreatedData
- Defined in:
- lib/workos/shared/agent_registration_created_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, agent_identity: :agent_identity, organization_id: :organization_id, status: :status, kind: :kind, method: :method, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#agent_identity ⇒ Object
Returns the value of attribute agent_identity.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#method ⇒ Object
Returns the value of attribute method.
-
#object ⇒ Object
Returns the value of attribute object.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentRegistrationCreatedData
constructor
A new instance of AgentRegistrationCreatedData.
Constructor Details
#initialize(json) ⇒ AgentRegistrationCreatedData
Returns a new instance of AgentRegistrationCreatedData.
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 30 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @agent_identity = hash[:agent_identity] ? WorkOS::AgentRegistrationCreatedDataAgentIdentity.new(hash[:agent_identity]) : nil @organization_id = hash[:organization_id] @status = hash[:status] @kind = hash[:kind] @method = hash[:method] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#agent_identity ⇒ Object
Returns the value of attribute agent_identity.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def agent_identity @agent_identity end |
#created_at ⇒ Object
Returns the value of attribute created_at.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def kind @kind end |
#method ⇒ Object
Returns the value of attribute method.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def method @method end |
#object ⇒ Object
Returns the value of attribute object.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def organization_id @organization_id end |
#status ⇒ Object
Returns the value of attribute status.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
19 20 21 |
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19 def updated_at @updated_at end |