Class: Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::ToolList::AssistantsV1ServiceCreateToolRequest
- 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) ⇒ AssistantsV1ServiceCreateToolRequest
constructor
A new instance of AssistantsV1ServiceCreateToolRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AssistantsV1ServiceCreateToolRequest
Returns a new instance of AssistantsV1ServiceCreateToolRequest.
56 57 58 59 60 61 62 63 64 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 56 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
55 56 57 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 55 def assistant_id @assistant_id end |
#description ⇒ Object
55 56 57 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 55 def description @description end |
#enabled ⇒ Object
55 56 57 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 55 def enabled @enabled end |
#meta ⇒ Object
55 56 57 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 55 def @meta end |
#name ⇒ Object
55 56 57 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 55 def name @name end |
#policy ⇒ Object
55 56 57 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 55 def policy @policy end |
#type ⇒ Object
55 56 57 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 55 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 65 def to_json( = {}) { "assistant_id": @assistant_id, "description": @description, "enabled": @enabled, "meta": @meta, "name": @name, "policy": @policy, "type": @type, }.to_json() end |