class Twilio::REST::Preview::BulkExports::ExportList::JobContext
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
Public Class Methods
new(version, job_sid)
click to toggle source
Initialize the JobContext
@param [Version] version Version
that contains the resource @param [String] job_sid The unique string that that we created to identify the
Bulk Export job
@return [JobContext] JobContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb 75 def initialize(version, job_sid) 76 super(version) 77 78 # Path Solution 79 @solution = {job_sid: job_sid, } 80 @uri = "/Exports/Jobs/#{@solution[:job_sid]}" 81 end
Public Instance Methods
delete()
click to toggle source
Delete the JobInstance
@return [Boolean] true if delete succeeds, false otherwise
# File lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb 95 def delete 96 @version.delete('DELETE', @uri) 97 end
fetch()
click to toggle source
Fetch the JobInstance
@return [JobInstance] Fetched JobInstance
# File lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb 86 def fetch 87 payload = @version.fetch('GET', @uri) 88 89 JobInstance.new(@version, payload, job_sid: @solution[:job_sid], ) 90 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb 108 def inspect 109 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 110 "#<Twilio.Preview.BulkExports.JobContext #{context}>" 111 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb 101 def to_s 102 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 103 "#<Twilio.Preview.BulkExports.JobContext #{context}>" 104 end