class Twilio::REST::Bulkexports::V1::ExportList::JobContext

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/bulkexports/v1/export/job.rb
69 def initialize(version, job_sid)
70   super(version)
71 
72   # Path Solution
73   @solution = {job_sid: job_sid, }
74   @uri = "/Exports/Jobs/#{@solution[:job_sid]}"
75 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/bulkexports/v1/export/job.rb
89 def delete
90    @version.delete('DELETE', @uri)
91 end
fetch() click to toggle source

Fetch the JobInstance @return [JobInstance] Fetched JobInstance

   # File lib/twilio-ruby/rest/bulkexports/v1/export/job.rb
80 def fetch
81   payload = @version.fetch('GET', @uri)
82 
83   JobInstance.new(@version, payload, job_sid: @solution[:job_sid], )
84 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/bulkexports/v1/export/job.rb
102 def inspect
103   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
104   "#<Twilio.Bulkexports.V1.JobContext #{context}>"
105 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/bulkexports/v1/export/job.rb
95 def to_s
96   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
97   "#<Twilio.Bulkexports.V1.JobContext #{context}>"
98 end