Class: Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceUpdateToolRequest
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/tool.rb,
lib/twilio-ruby/rest/assistants/v1/tool.rb
Instance Attribute Summary collapse
- #assistant_id ⇒ Object
- #description ⇒ Object
- #enabled ⇒ Object
- #meta ⇒ Object
- #name ⇒ Object
- #policy ⇒ Object
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ AssistantsV1ServiceUpdateToolRequest
constructor
A new instance of AssistantsV1ServiceUpdateToolRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AssistantsV1ServiceUpdateToolRequest
Returns a new instance of AssistantsV1ServiceUpdateToolRequest.
87 88 89 90 91 92 93 94 95 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 87 def initialize(payload) @assistant_id = payload["assistant_id"] @description = payload["description"] @enabled = payload["enabled"] @meta = payload["meta"] @name = payload["name"] @policy = payload["policy"] @type = payload["type"] end |
Instance Attribute Details
#assistant_id ⇒ Object
86 87 88 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 86 def assistant_id @assistant_id end |
#description ⇒ Object
86 87 88 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 86 def description @description end |
#enabled ⇒ Object
86 87 88 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 86 def enabled @enabled end |
#meta ⇒ Object
86 87 88 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 86 def @meta end |
#name ⇒ Object
86 87 88 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 86 def name @name end |
#policy ⇒ Object
86 87 88 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 86 def policy @policy end |
#type ⇒ Object
86 87 88 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 86 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 96 def to_json( = {}) { "assistant_id": @assistant_id, "description": @description, "enabled": @enabled, "meta": @meta, "name": @name, "policy": @policy, "type": @type, }.to_json() end |