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.
573 574 575 576 577 578 579 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 573 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
666 667 668 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 666 def headers @headers end |
#status_code ⇒ Object
670 671 672 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 670 def status_code @status_code end |
#tool ⇒ Object
662 663 664 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 662 def tool @tool end |
#tool_instance ⇒ Object
581 582 583 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 581 def tool_instance @instance end |