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

- old
+ new

@@ -18,10 +18,11 @@ class Taskrouter < TaskrouterBase class V1 < Version class WorkspaceContext < InstanceContext class WorkspaceStatisticsList < ListResource + ## # Initialize the WorkspaceStatisticsList # @param [Version] version Version that contains the resource # @return [WorkspaceStatisticsList] WorkspaceStatisticsList def initialize(version, workspace_sid: nil) @@ -77,9 +78,10 @@ 'StartDate' => Twilio.serialize_iso8601_datetime(start_date), 'EndDate' => Twilio.serialize_iso8601_datetime(end_date), 'TaskChannel' => task_channel, 'SplitByWaitTime' => split_by_wait_time, }) + payload = @version.fetch('GET', @uri, params: params) WorkspaceStatisticsInstance.new( @version, payload, workspace_sid: @solution[:workspace_sid],