lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb in twilio-ruby-6.11.0

- old
+ new

@@ -19,10 +19,11 @@ class V1 < Version class WorkspaceContext < InstanceContext class WorkerContext < InstanceContext class WorkerStatisticsList < ListResource + ## # Initialize the WorkerStatisticsList # @param [Version] version Version that contains the resource # @return [WorkerStatisticsList] WorkerStatisticsList def initialize(version, workspace_sid: nil, worker_sid: nil) @@ -76,9 +77,10 @@ 'Minutes' => minutes, 'StartDate' => Twilio.serialize_iso8601_datetime(start_date), 'EndDate' => Twilio.serialize_iso8601_datetime(end_date), 'TaskChannel' => task_channel, }) + payload = @version.fetch('GET', @uri, params: params) WorkerStatisticsInstance.new( @version, payload, workspace_sid: @solution[:workspace_sid],