Class: Twilio::REST::Insights::V2::ReportPage

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

Initialize the ReportPage

Parameters:

  • version (Version) —

    Version that contains the resource

  • response (Response) —

    Response from the API

  • solution (Hash) —

    Path solution for the resource



659
660
661
662
663
664
665
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 659

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

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ ReportInstance

Build an instance of ReportInstance

Parameters:

  • payload (Hash) —

    Payload response from the API

Returns:



671
672
673
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 671

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

#to_s ⇒ Object

Provide a user friendly representation



677
678
679
# File 'lib/twilio-ruby/rest/insights/v2/report.rb', line 677

def to_s
    '<Twilio.Insights.V2.ReportPage>'
end