lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb in twilio-ruby-6.11.0
- old
+ new
@@ -19,10 +19,11 @@
class V1 < Version
class WorkspaceContext < InstanceContext
class TaskContext < InstanceContext
class ReservationList < ListResource
+
##
# Initialize the ReservationList
# @param [Version] version Version that contains the resource
# @return [ReservationList] ReservationList
def initialize(version, workspace_sid: nil, task_sid: nil)
@@ -158,10 +159,11 @@
##
# Fetch the ReservationInstance
# @return [ReservationInstance] Fetched ReservationInstance
def fetch
+
payload = @version.fetch('GET', @uri)
ReservationInstance.new(
@version,
payload,
workspace_sid: @solution[:workspace_sid],
@@ -341,9 +343,10 @@
'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
'BeepOnCustomerEntrance' => beep_on_customer_entrance,
'JitterBufferSize' => jitter_buffer_size,
})
+
headers = Twilio::Values.of({ 'If-Match' => if_match, })
payload = @version.update('POST', @uri, data: data, headers: headers)
ReservationInstance.new(
@version,
payload,