lib/twilio-ruby/rest/bulkexports/v1/export/job.rb in twilio-ruby-5.49.0 vs lib/twilio-ruby/rest/bulkexports/v1/export/job.rb in twilio-ruby-5.50.0
- old
+ new
@@ -134,10 +134,12 @@
'job_sid' => payload['job_sid'],
'webhook_url' => payload['webhook_url'],
'webhook_method' => payload['webhook_method'],
'email' => payload['email'],
'url' => payload['url'],
+ 'job_queue_position' => payload['job_queue_position'],
+ 'estimated_completion_time' => payload['estimated_completion_time'],
}
# Context
@instance_context = nil
@params = {'job_sid' => job_sid || @properties['job_sid'], }
@@ -210,9 +212,21 @@
##
# @return [String] The url
def url
@properties['url']
+ end
+
+ ##
+ # @return [String] This is the job position from the 1st in line. Your queue position will never increase. As jobs ahead of yours in the queue are processed, the queue position number will decrease
+ def job_queue_position
+ @properties['job_queue_position']
+ end
+
+ ##
+ # @return [String] this is the time estimated until your job is complete. This is calculated each time you request the job list. The time is calculated based on the current rate of job completion (which may vary) and your job queue position
+ def estimated_completion_time
+ @properties['estimated_completion_time']
end
##
# Fetch the JobInstance
# @return [JobInstance] Fetched JobInstance
\ No newline at end of file