Class: Twilio::REST::Preview::BulkExports::ExportList::JobContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Preview::BulkExports::ExportList::JobContext
- Defined in:
- lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb
Overview
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 [email protected].
Instance Method Summary collapse
-
#delete ⇒ Boolean
Delete the JobInstance.
-
#fetch ⇒ JobInstance
Fetch the JobInstance.
-
#initialize(version, job_sid) ⇒ JobContext
constructor
Initialize the JobContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, job_sid) ⇒ JobContext
Initialize the JobContext
75 76 77 78 79 80 81 |
# File 'lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb', line 75 def initialize(version, job_sid) super(version) # Path Solution @solution = {job_sid: job_sid, } @uri = "/Exports/Jobs/#{@solution[:job_sid]}" end |
Instance Method Details
#delete ⇒ Boolean
Delete the JobInstance
95 96 97 |
# File 'lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb', line 95 def delete @version.delete('DELETE', @uri) end |
#fetch ⇒ JobInstance
Fetch the JobInstance
86 87 88 89 90 |
# File 'lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb', line 86 def fetch payload = @version.fetch('GET', @uri) JobInstance.new(@version, payload, job_sid: @solution[:job_sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
108 109 110 111 |
# File 'lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb', line 108 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Preview.BulkExports.JobContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
101 102 103 104 |
# File 'lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb', line 101 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Preview.BulkExports.JobContext #{context}>" end |