Class: WorkOS::AgentBlueprintCreatedData

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

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  name: :name,
  description: :description,
  permissions: :permissions,
  invocable_by: :invocable_by,
  session_settings: :session_settings,
  created_at: :created_at,
  updated_at: :updated_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentBlueprintCreatedData

Returns a new instance of AgentBlueprintCreatedData.



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/workos/shared/agent_blueprint_created_data.rb', line 30

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @name = hash[:name]
  @description = hash[:description]
  @permissions = hash[:permissions] || []
  @invocable_by = hash[:invocable_by] ? WorkOS::AgentBlueprintCreatedDataInvocableBy.new(hash[:invocable_by]) : nil
  @session_settings = hash[:session_settings] ? WorkOS::AgentBlueprintCreatedDataSessionSetting.new(hash[:session_settings]) : nil
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#invocable_byObject

Returns the value of attribute invocable_by.



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

def invocable_by
  @invocable_by
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#objectObject

Returns the value of attribute object.



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

def object
  @object
end

#permissionsObject

Returns the value of attribute permissions.



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

def permissions
  @permissions
end

#session_settingsObject

Returns the value of attribute session_settings.



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

def session_settings
  @session_settings
end

#updated_atObject

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end