lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb in twilio-ruby-5.6.1
- old
+ new
@@ -82,11 +82,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
@@ -155,19 +155,19 @@
'POST',
@uri,
data: data
)
- TaskQueueInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid])
+ TaskQueueInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid], )
end
##
# Access the statistics
# @return [TaskQueuesStatisticsList]
# @return [TaskQueuesStatisticsContext]
def statistics
- @statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid])
+ @statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid], )
end
##
# Provide a user friendly representation
def to_s
@@ -192,11 +192,11 @@
##
# Build an instance of TaskQueueInstance
# @param [Hash] payload Payload response from the API
# @return [TaskQueueInstance] TaskQueueInstance
def get_instance(payload)
- TaskQueueInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid])
+ TaskQueueInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid], )
end
##
# Provide a user friendly representation
def to_s
@@ -213,11 +213,11 @@
# @return [TaskQueueContext] TaskQueueContext
def initialize(version, workspace_sid, sid)
super(version)
# Path Solution
- @solution = {workspace_sid: workspace_sid, sid: sid}
+ @solution = {workspace_sid: workspace_sid, sid: sid, }
@uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues/#{@solution[:sid]}"
# Dependents
@statistics = nil
@real_time_statistics = nil
@@ -287,27 +287,27 @@
##
# Access the statistics
# @return [TaskQueueStatisticsList]
# @return [TaskQueueStatisticsContext]
def statistics
- TaskQueueStatisticsContext.new(@version, @solution[:workspace_sid], @solution[:sid])
+ TaskQueueStatisticsContext.new(@version, @solution[:workspace_sid], @solution[:sid], )
end
##
# Access the real_time_statistics
# @return [TaskQueueRealTimeStatisticsList]
# @return [TaskQueueRealTimeStatisticsContext]
def real_time_statistics
- TaskQueueRealTimeStatisticsContext.new(@version, @solution[:workspace_sid], @solution[:sid])
+ TaskQueueRealTimeStatisticsContext.new(@version, @solution[:workspace_sid], @solution[:sid], )
end
##
# Access the cumulative_statistics
# @return [TaskQueueCumulativeStatisticsList]
# @return [TaskQueueCumulativeStatisticsContext]
def cumulative_statistics
- TaskQueueCumulativeStatisticsContext.new(@version, @solution[:workspace_sid], @solution[:sid])
+ TaskQueueCumulativeStatisticsContext.new(@version, @solution[:workspace_sid], @solution[:sid], )
end
##
# Provide a user friendly representation
def to_s
@@ -346,19 +346,19 @@
'links' => payload['links'],
}
# Context
@instance_context = nil
- @params = {'workspace_sid' => workspace_sid, 'sid' => sid || @properties['sid']}
+ @params = {'workspace_sid' => workspace_sid, 'sid' => sid || @properties['sid'], }
end
##
# Generate an instance context for the instance, the context is capable of
# performing various actions. All instance actions are proxied to the context
# @return [TaskQueueContext] TaskQueueContext for this TaskQueueInstance
def context
unless @instance_context
- @instance_context = TaskQueueContext.new(@version, @params['workspace_sid'], @params['sid'])
+ @instance_context = TaskQueueContext.new(@version, @params['workspace_sid'], @params['sid'], )
end
@instance_context
end
##
\ No newline at end of file