lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb in twilio-ruby-5.4.5
- old
+ new
@@ -52,11 +52,11 @@
# efficient page size, i.e. min(limit, 1000)
# @return [Enumerable] Enumerable that will yield up to limit results
def stream(limit: nil, page_size: nil)
limits = @version.read_limits(limit, page_size)
- 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])
end
##
@@ -64,11 +64,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
@@ -158,11 +158,11 @@
# @return [WorkerChannelContext] WorkerChannelContext
def initialize(version, workspace_sid, worker_sid, sid)
super(version)
# Path Solution
- @solution = {workspace_sid: workspace_sid, worker_sid: worker_sid, sid: sid,}
+ @solution = {workspace_sid: workspace_sid, worker_sid: worker_sid, sid: sid}
@uri = "/Workspaces/#{@solution[:workspace_sid]}/Workers/#{@solution[:worker_sid]}/Channels/#{@solution[:sid]}"
end
##
# Fetch a WorkerChannelInstance
@@ -189,11 +189,11 @@
# Update the WorkerChannelInstance
# @param [String] capacity The capacity
# @param [Boolean] available The available
# @return [WorkerChannelInstance] Updated WorkerChannelInstance
def update(capacity: :unset, available: :unset)
- data = Twilio::Values.of({'Capacity' => capacity, 'Available' => available,})
+ data = Twilio::Values.of({'Capacity' => capacity, 'Available' => available})
payload = @version.update(
'POST',
@uri,
data: data,
@@ -366,10 +366,10 @@
# Update the WorkerChannelInstance
# @param [String] capacity The capacity
# @param [Boolean] available The available
# @return [WorkerChannelInstance] Updated WorkerChannelInstance
def update(capacity: :unset, available: :unset)
- context.update(capacity: capacity, available: available,)
+ context.update(capacity: capacity, available: available)
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file