lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb in twilio-ruby-5.3.0 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb in twilio-ruby-5.3.1
- old
+ new
@@ -209,12 +209,12 @@
}
@uri = "/Workspaces/#{@solution[:workspace_sid]}/Workflows/#{@solution[:sid]}"
# Dependents
@statistics = nil
- @workflow_real_time_statistics = nil
- @workflow_cumulative_statistics = nil
+ @real_time_statistics = nil
+ @cumulative_statistics = nil
end
##
# Fetch a WorkflowInstance
# @return [WorkflowInstance] Fetched WorkflowInstance
@@ -285,26 +285,26 @@
@solution[:sid],
)
end
##
- # Access the workflow_real_time_statistics
+ # Access the real_time_statistics
# @return [WorkflowRealTimeStatisticsList]
# @return [WorkflowRealTimeStatisticsContext]
- def workflow_real_time_statistics
+ def real_time_statistics
WorkflowRealTimeStatisticsContext.new(
@version,
@solution[:workspace_sid],
@solution[:sid],
)
end
##
- # Access the workflow_cumulative_statistics
+ # Access the cumulative_statistics
# @return [WorkflowCumulativeStatisticsList]
# @return [WorkflowCumulativeStatisticsContext]
- def workflow_cumulative_statistics
+ def cumulative_statistics
WorkflowCumulativeStatisticsContext.new(
@version,
@solution[:workspace_sid],
@solution[:sid],
)
@@ -486,20 +486,20 @@
def statistics
context.statistics
end
##
- # Access the workflow_real_time_statistics
- # @return [workflow_real_time_statistics] workflow_real_time_statistics
- def workflow_real_time_statistics
- context.workflow_real_time_statistics
+ # Access the real_time_statistics
+ # @return [real_time_statistics] real_time_statistics
+ def real_time_statistics
+ context.real_time_statistics
end
##
- # Access the workflow_cumulative_statistics
- # @return [workflow_cumulative_statistics] workflow_cumulative_statistics
- def workflow_cumulative_statistics
- context.workflow_cumulative_statistics
+ # Access the cumulative_statistics
+ # @return [cumulative_statistics] cumulative_statistics
+ def cumulative_statistics
+ context.cumulative_statistics
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file