Class: WorkOS::AgentBlueprintsCreateRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentBlueprintsCreateRequest
- Defined in:
- lib/workos/agents/agent_blueprints_create_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, description: :description, permissions: :permissions, invocable_by: :invocable_by, invocable_as: :invocable_as, session_settings: :session_settings }.freeze
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#invocable_as ⇒ Object
Returns the value of attribute invocable_as.
-
#invocable_by ⇒ Object
Returns the value of attribute invocable_by.
-
#name ⇒ Object
Returns the value of attribute name.
-
#permissions ⇒ Object
Returns the value of attribute permissions.
-
#session_settings ⇒ Object
Returns the value of attribute session_settings.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentBlueprintsCreateRequest
constructor
A new instance of AgentBlueprintsCreateRequest.
Constructor Details
#initialize(json) ⇒ AgentBlueprintsCreateRequest
Returns a new instance of AgentBlueprintsCreateRequest.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/agents/agent_blueprints_create_request.rb', line 24 def initialize(json) hash = self.class.normalize(json) @name = hash[:name] @description = hash[:description] @permissions = hash[:permissions] || [] @invocable_by = hash[:invocable_by] ? WorkOS::AgentBlueprintsCreateRequestInvocableBy.new(hash[:invocable_by]) : nil @invocable_as = hash[:invocable_as] ? WorkOS::AgentBlueprintsCreateRequestInvocableAs.new(hash[:invocable_as]) : nil @session_settings = hash[:session_settings] ? WorkOS::AgentBlueprintsCreateRequestSessionSetting.new(hash[:session_settings]) : nil end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
16 17 18 |
# File 'lib/workos/agents/agent_blueprints_create_request.rb', line 16 def description @description end |
#invocable_as ⇒ Object
Returns the value of attribute invocable_as.
16 17 18 |
# File 'lib/workos/agents/agent_blueprints_create_request.rb', line 16 def invocable_as @invocable_as end |
#invocable_by ⇒ Object
Returns the value of attribute invocable_by.
16 17 18 |
# File 'lib/workos/agents/agent_blueprints_create_request.rb', line 16 def invocable_by @invocable_by end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/workos/agents/agent_blueprints_create_request.rb', line 16 def name @name end |
#permissions ⇒ Object
Returns the value of attribute permissions.
16 17 18 |
# File 'lib/workos/agents/agent_blueprints_create_request.rb', line 16 def @permissions end |
#session_settings ⇒ Object
Returns the value of attribute session_settings.
16 17 18 |
# File 'lib/workos/agents/agent_blueprints_create_request.rb', line 16 def session_settings @session_settings end |