lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb in twilio-ruby-5.38.0 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb in twilio-ruby-5.39.0
- old
+ new
@@ -85,11 +85,11 @@
@solution = {workspace_sid: workspace_sid, worker_sid: worker_sid, }
@uri = "/Workspaces/#{@solution[:workspace_sid]}/Workers/#{@solution[:worker_sid]}/Statistics"
end
##
- # Fetch a WorkerStatisticsInstance
+ # Fetch the WorkerStatisticsInstance
# @param [String] minutes Only calculate statistics since this many minutes in the
# past. The default 15 minutes. This is helpful for displaying statistics for the
# last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.
# @param [Time] start_date Only calculate statistics from this date and time and
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
@@ -106,15 +106,11 @@
'StartDate' => Twilio.serialize_iso8601_datetime(start_date),
'EndDate' => Twilio.serialize_iso8601_datetime(end_date),
'TaskChannel' => task_channel,
})
- payload = @version.fetch(
- 'GET',
- @uri,
- params,
- )
+ payload = @version.fetch('GET', @uri, params)
WorkerStatisticsInstance.new(
@version,
payload,
workspace_sid: @solution[:workspace_sid],
@@ -208,10 +204,10 @@
def url
@properties['url']
end
##
- # Fetch a WorkerStatisticsInstance
+ # Fetch the WorkerStatisticsInstance
# @param [String] minutes Only calculate statistics since this many minutes in the
# past. The default 15 minutes. This is helpful for displaying statistics for the
# last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.
# @param [Time] start_date Only calculate statistics from this date and time and
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
\ No newline at end of file