lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb in twilio-ruby-5.4.2 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb in twilio-ruby-5.4.3
- old
+ new
@@ -19,14 +19,11 @@
# @return [WorkerStatisticsList] WorkerStatisticsList
def initialize(version, workspace_sid: nil, worker_sid: nil)
super(version)
# Path Solution
- @solution = {
- workspace_sid: workspace_sid,
- worker_sid: worker_sid
- }
+ @solution = {workspace_sid: workspace_sid, worker_sid: worker_sid}
end
##
# Provide a user friendly representation
def to_s
@@ -77,14 +74,11 @@
# @return [WorkerStatisticsContext] WorkerStatisticsContext
def initialize(version, workspace_sid, worker_sid)
super(version)
# Path Solution
- @solution = {
- workspace_sid: workspace_sid,
- worker_sid: worker_sid,
- }
+ @solution = {workspace_sid: workspace_sid, worker_sid: worker_sid,}
@uri = "/Workspaces/#{@solution[:workspace_sid]}/Workers/#{@solution[:worker_sid]}/Statistics"
end
##
# Fetch a WorkerStatisticsInstance
@@ -143,14 +137,11 @@
'url' => payload['url'],
}
# Context
@instance_context = nil
- @params = {
- 'workspace_sid' => workspace_sid,
- 'worker_sid' => worker_sid,
- }
+ @params = {'workspace_sid' => workspace_sid, 'worker_sid' => worker_sid,}
end
##
# Generate an instance context for the instance, the context is capable of
# performing various actions. All instance actions are proxied to the context
@@ -202,15 +193,10 @@
# @param [Time] start_date The start_date
# @param [Time] end_date The end_date
# @param [String] task_channel The task_channel
# @return [WorkerStatisticsInstance] Fetched WorkerStatisticsInstance
def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset)
- context.fetch(
- minutes: minutes,
- start_date: start_date,
- end_date: end_date,
- task_channel: task_channel,
- )
+ context.fetch(minutes: minutes, start_date: start_date, end_date: end_date, task_channel: task_channel,)
end
##
# Provide a user friendly representation
def to_s
\ No newline at end of file