lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb in twilio-ruby-6.11.0
- old
+ new
@@ -19,10 +19,11 @@
class V1 < Version
class WorkspaceContext < InstanceContext
class WorkerList < ListResource
class WorkersStatisticsList < ListResource
+
##
# Initialize the WorkersStatisticsList
# @param [Version] version Version that contains the resource
# @return [WorkersStatisticsList] WorkersStatisticsList
def initialize(version, workspace_sid: nil)
@@ -84,9 +85,10 @@
'TaskQueueSid' => task_queue_sid,
'TaskQueueName' => task_queue_name,
'FriendlyName' => friendly_name,
'TaskChannel' => task_channel,
})
+
payload = @version.fetch('GET', @uri, params: params)
WorkersStatisticsInstance.new(
@version,
payload,
workspace_sid: @solution[:workspace_sid],