Class: WorkOS::AgentRegistrationCreatedDataAgentIdentity

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/agent_registration_created_data_agent_identity.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  userland_user_id: :userland_user_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentRegistrationCreatedDataAgentIdentity

Returns a new instance of AgentRegistrationCreatedDataAgentIdentity.



18
19
20
21
22
23
# File 'lib/workos/shared/agent_registration_created_data_agent_identity.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @userland_user_id = hash[:userland_user_id]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/workos/shared/agent_registration_created_data_agent_identity.rb', line 13

def id
  @id
end

#objectObject

Returns the value of attribute object.



13
14
15
# File 'lib/workos/shared/agent_registration_created_data_agent_identity.rb', line 13

def object
  @object
end

#userland_user_idObject

Returns the value of attribute userland_user_id.



13
14
15
# File 'lib/workos/shared/agent_registration_created_data_agent_identity.rb', line 13

def userland_user_id
  @userland_user_id
end