lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb in twilio-ruby-5.6.1
- old
+ new
@@ -54,11 +54,11 @@
# efficient page size, i.e. min(limit, 1000)
# @return [Enumerable] Enumerable that will yield up to limit results
def stream(reservation_status: :unset, limit: nil, page_size: nil)
limits = @version.read_limits(limit, page_size)
- page = self.page(reservation_status: reservation_status, page_size: limits[:page_size])
+ page = self.page(reservation_status: reservation_status, page_size: limits[:page_size], )
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
end
##
@@ -66,11 +66,11 @@
# This operation lazily loads records as efficiently as possible until the limit
# is reached.
def each
limits = @version.read_limits
- page = self.page(page_size: limits[:page_size])
+ page = self.page(page_size: limits[:page_size], )
@version.stream(page,
limit: limits[:limit],
page_limit: limits[:page_limit]).each {|x| yield x}
end
@@ -162,10 +162,10 @@
# @return [ReservationContext] ReservationContext
def initialize(version, workspace_sid, task_sid, sid)
super(version)
# Path Solution
- @solution = {workspace_sid: workspace_sid, task_sid: task_sid, sid: sid}
+ @solution = {workspace_sid: workspace_sid, task_sid: task_sid, sid: sid, }
@uri = "/Workspaces/#{@solution[:workspace_sid]}/Tasks/#{@solution[:task_sid]}/Reservations/#{@solution[:sid]}"
end
##
# Fetch a ReservationInstance
\ No newline at end of file