Class: WorkOS::AgentRegistrationCreatedData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_identityObject

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_atObject

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

#idObject

Returns the value of attribute id.



19
20
21
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19

def id
  @id
end

#kindObject

Returns the value of attribute kind.



19
20
21
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19

def kind
  @kind
end

#methodObject

Returns the value of attribute method.



19
20
21
# File 'lib/workos/shared/agent_registration_created_data.rb', line 19

def method
  @method
end

#objectObject

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_idObject

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

#statusObject

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_atObject

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