Class: Twilio::REST::Lookups::V2::QueryPage

Inherits:
Page
  • Object
show all
Defined in:
lib/twilio-ruby/rest/lookups/v2/query.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) ⇒ QueryPage

Initialize the QueryPage

Parameters:

  • version (Version)

    Version that contains the resource

  • response (Response)

    Response from the API

  • solution (Hash)

    Path solution for the resource



393
394
395
396
397
398
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 393

def initialize(version, response, solution)
    super(version, response)

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ QueryInstance

Build an instance of QueryInstance

Parameters:

  • payload (Hash)

    Payload response from the API

Returns:



404
405
406
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 404

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

#to_sObject

Provide a user friendly representation



410
411
412
# File 'lib/twilio-ruby/rest/lookups/v2/query.rb', line 410

def to_s
    '<Twilio.Lookups.V2.QueryPage>'
end