Class: Twilio::REST::Insights::V2::InboundReportPage

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

Initialize the InboundReportPage

Parameters:

  • Version that contains the resource

  • Response from the API

  • Path solution for the resource



164
165
166
167
168
169
170
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 164

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

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ InboundReportInstance

Build an instance of InboundReportInstance

Parameters:

  • Payload response from the API

Returns:

  • InboundReportInstance



176
177
178
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 176

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

#to_s ⇒ Object

Provide a user friendly representation



182
183
184
# File 'lib/twilio-ruby/rest/insights/v2/inbound_report.rb', line 182

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