lib/twilio-ruby/rest/taskrouter/v1/workspace.rb in twilio-ruby-5.2.3 vs lib/twilio-ruby/rest/taskrouter/v1/workspace.rb in twilio-ruby-5.3.0

- old
+ new

@@ -208,10 +208,12 @@ @tasks = nil @task_queues = nil @workers = nil @workflows = nil @statistics = nil + @workspace_real_time_statistics = nil + @workspace_cumulative_statistics = nil @task_channels = nil end ## # Fetch a WorkspaceInstance @@ -433,10 +435,32 @@ @solution[:sid], ) end ## + # Access the workspace_real_time_statistics + # @return [WorkspaceRealTimeStatisticsList] + # @return [WorkspaceRealTimeStatisticsContext] + def workspace_real_time_statistics + WorkspaceRealTimeStatisticsContext.new( + @version, + @solution[:sid], + ) + end + + ## + # Access the workspace_cumulative_statistics + # @return [WorkspaceCumulativeStatisticsList] + # @return [WorkspaceCumulativeStatisticsContext] + def workspace_cumulative_statistics + WorkspaceCumulativeStatisticsContext.new( + @version, + @solution[:sid], + ) + end + + ## # Access the task_channels # @return [TaskChannelList] # @return [TaskChannelContext] if sid was passed. def task_channels(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? @@ -688,9 +712,23 @@ ## # Access the statistics # @return [statistics] statistics def statistics context.statistics + end + + ## + # Access the workspace_real_time_statistics + # @return [workspace_real_time_statistics] workspace_real_time_statistics + def workspace_real_time_statistics + context.workspace_real_time_statistics + end + + ## + # Access the workspace_cumulative_statistics + # @return [workspace_cumulative_statistics] workspace_cumulative_statistics + def workspace_cumulative_statistics + context.workspace_cumulative_statistics end ## # Access the task_channels # @return [task_channels] task_channels \ No newline at end of file