Class: WorkOS::AgentRegistrationAgentIdentity

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/agents/agent_registration_agent_identity.rb

Constant Summary collapse

HASH_ATTRS =
{
  id: :id,
  userland_user_id: :userland_user_id,
  created_at: :created_at,
  updated_at: :updated_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentRegistrationAgentIdentity

Returns a new instance of AgentRegistrationAgentIdentity.



20
21
22
23
24
25
26
# File 'lib/workos/agents/agent_registration_agent_identity.rb', line 20

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

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



14
15
16
# File 'lib/workos/agents/agent_registration_agent_identity.rb', line 14

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



14
15
16
# File 'lib/workos/agents/agent_registration_agent_identity.rb', line 14

def id
  @id
end

#updated_atObject

Returns the value of attribute updated_at.



14
15
16
# File 'lib/workos/agents/agent_registration_agent_identity.rb', line 14

def updated_at
  @updated_at
end

#userland_user_idObject

Returns the value of attribute userland_user_id.



14
15
16
# File 'lib/workos/agents/agent_registration_agent_identity.rb', line 14

def userland_user_id
  @userland_user_id
end