Class: WorkOS::AgentBlueprintCreatedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentBlueprintCreatedData
- 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
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invocable_by ⇒ Object
Returns the value of attribute invocable_by.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
-
#permissions ⇒ Object
Returns the value of attribute permissions.
-
#session_settings ⇒ Object
Returns the value of attribute session_settings.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentBlueprintCreatedData
constructor
A new instance of AgentBlueprintCreatedData.
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_at ⇒ Object
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 |
#description ⇒ Object
Returns the value of attribute description.
19 20 21 |
# File 'lib/workos/shared/agent_blueprint_created_data.rb', line 19 def description @description end |
#id ⇒ Object
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_by ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'lib/workos/shared/agent_blueprint_created_data.rb', line 19 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
19 20 21 |
# File 'lib/workos/shared/agent_blueprint_created_data.rb', line 19 def object @object end |
#permissions ⇒ Object
Returns the value of attribute permissions.
19 20 21 |
# File 'lib/workos/shared/agent_blueprint_created_data.rb', line 19 def @permissions end |
#session_settings ⇒ Object
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_at ⇒ Object
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 |