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,
  invocable_as: :invocable_as,
  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.



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

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
  @invocable_as = hash[:invocable_as] ? WorkOS::AgentBlueprintCreatedDataInvocableAs.new(hash[:invocable_as]) : 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_at ⇒ Object

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#description ⇒ Object

Returns the value of attribute description.



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

def description
  @description
end

#id ⇒ Object

Returns the value of attribute id.



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

def id
  @id
end

#invocable_as ⇒ Object

Returns the value of attribute invocable_as.



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

def invocable_as
  @invocable_as
end

#invocable_by ⇒ Object

Returns the value of attribute invocable_by.



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

def invocable_by
  @invocable_by
end

#name ⇒ Object

Returns the value of attribute name.



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

def name
  @name
end

#object ⇒ Object

Returns the value of attribute object.



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

def object
  @object
end

#permissions ⇒ Object

Returns the value of attribute permissions.



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

def permissions
  @permissions
end

#session_settings ⇒ Object

Returns the value of attribute session_settings.



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

def session_settings
  @session_settings
end

#updated_at ⇒ Object

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end