Class: Twilio::REST::Assistants::V1::ToolPage
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/tool.rb
Constant Summary
Constants inherited from Page
Instance Method Summary collapse
-
#get_instance(payload) ⇒ ToolInstance
Build an instance of ToolInstance.
-
#initialize(version, response, solution) ⇒ ToolPage
constructor
Initialize the ToolPage.
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Page
#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution) ⇒ ToolPage
Initialize the ToolPage
422 423 424 425 426 427 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 422 def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end |
Instance Method Details
#get_instance(payload) ⇒ ToolInstance
Build an instance of ToolInstance
433 434 435 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 433 def get_instance(payload) ToolInstance.new(@version, payload) end |
#to_s ⇒ Object
Provide a user friendly representation
439 440 441 |
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 439 def to_s '<Twilio.Assistants.V1.ToolPage>' end |