lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb in twilio-ruby-6.8.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb in twilio-ruby-6.8.2

- old
+ new

@@ -29,10 +29,11 @@ # Path Solution @solution = { workspace_sid: workspace_sid } @uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues" # Components @statistics = nil + @bulk_real_time_statistics = nil end ## # Create the TaskQueueInstance # @param [String] friendly_name A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. # @param [String] target_workers A string that describes the Worker selection criteria for any Tasks that enter the TaskQueue. For example, `'\\\"language\\\" == \\\"spanish\\\"'`. The default value is `1==1`. If this value is empty, Tasks will wait in the TaskQueue until they are deleted or moved to another TaskQueue. For more information about Worker selection, see [Describing Worker selection criteria](https://www.twilio.com/docs/taskrouter/api/taskqueues#target-workers). @@ -181,9 +182,16 @@ # Access the statistics # @return [TaskQueuesStatisticsList] # @return [TaskQueuesStatisticsContext] def statistics @statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] ) + end + ## + # Access the bulk_real_time_statistics + # @return [TaskQueueBulkRealTimeStatisticsList] + # @return [TaskQueueBulkRealTimeStatisticsContext] + def bulk_real_time_statistics + @bulk_real_time_statistics ||= TaskQueueBulkRealTimeStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] ) end # Provide a user friendly representation def to_s '#<Twilio.Taskrouter.V1.TaskQueueList>'