Class: Twilio::REST::Bulkexports::V1::ExportContext::ExportCustomJobPage

Inherits:
Page
  • Object
show all
Defined in:
lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.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) ⇒ ExportCustomJobPage

Initialize the ExportCustomJobPage

Parameters:

  • Version that contains the resource

  • Response from the API

  • Path solution for the resource



249
250
251
252
253
254
255
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 249

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

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ ExportCustomJobInstance

Build an instance of ExportCustomJobInstance

Parameters:

  • Payload response from the API

Returns:

  • ExportCustomJobInstance



261
262
263
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 261

def get_instance(payload)
    ExportCustomJobInstance.new(@version, payload, resource_type: @solution[:resource_type])
end

#to_sObject

Provide a user friendly representation



267
268
269
# File 'lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb', line 267

def to_s
    '<Twilio.Bulkexports.V1.ExportCustomJobPage>'
end