Class: Twilio::REST::Assistants::V1::ToolPage

Inherits:
Page
  • Object
show all
Defined in:
lib/twilio-ruby/rest/assistants/v1/tool.rb

Constant Summary

Constants inherited from Page

Page::META_KEYS

Instance Method Summary collapse

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

Parameters:

  • version (Version)

    Version that contains the resource

  • response (Response)

    Response from the API

  • solution (Hash)

    Path solution for the resource



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

Parameters:

  • payload (Hash)

    Payload response from the API

Returns:



433
434
435
# File 'lib/twilio-ruby/rest/assistants/v1/tool.rb', line 433

def get_instance(payload)
    ToolInstance.new(@version, payload)
end

#to_sObject

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