lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb in twilio-ruby-6.12.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb in twilio-ruby-7.0.0.pre.rc.1
- old
+ new
@@ -29,12 +29,12 @@
super(version)
# Path Solution
@solution = { workspace_sid: workspace_sid }
@uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues"
# Components
- @statistics = nil
@bulk_real_time_statistics = nil
+ @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).
@@ -179,21 +179,21 @@
TaskQueuePage.new(@version, response, @solution)
end
##
- # 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
+ ##
+ # Access the statistics
+ # @return [TaskQueuesStatisticsList]
+ # @return [TaskQueuesStatisticsContext]
+ def statistics
+ @statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
end
# Provide a user friendly representation
def to_s
'#<Twilio.Taskrouter.V1.TaskQueueList>'