Class: Twilio::REST::Assistants::V1::ToolListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Assistants::V1::ToolListResponse
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/tool.rb,
lib/twilio-ruby/rest/assistants/v1/tool.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ToolListResponse
constructor
A new instance of ToolListResponse.
- #status_code ⇒ Object
- #tool ⇒ Object
- #tool_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ToolListResponse
Returns a new instance of ToolListResponse.
581 582 583 584 585 586 587 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 581 def initialize(version, payload, key) @tool_instance = payload.body[key].map do |data| ToolInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
674 675 676 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 674 def headers @headers end |
#status_code ⇒ Object
678 679 680 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 678 def status_code @status_code end |
#tool ⇒ Object
670 671 672 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 670 def tool @tool end |
#tool_instance ⇒ Object
589 590 591 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 589 def tool_instance @instance end |