Class: Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkerContext::WorkerStatisticsList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, workspace_sid: nil, worker_sid: nil) ⇒ WorkerStatisticsList

Initialize the WorkerStatisticsList

Parameters:

  • version (Version)

    Version that contains the resource

  • workspace_sid (String) (defaults to: nil)

    The SID of the Workspace that contains the WorkerChannel.

  • worker_sid (String) (defaults to: nil)

    The SID of the Worker that contains the WorkerChannel.


24
25
26
27
28
29
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb', line 24

def initialize(version, workspace_sid: nil, worker_sid: nil)
  super(version)

  # Path Solution
  @solution = {workspace_sid: workspace_sid, worker_sid: worker_sid}
end

Instance Method Details

#to_sObject

Provide a user friendly representation


33
34
35
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb', line 33

def to_s
  '#<Twilio.Taskrouter.V1.WorkerStatisticsList>'
end