class Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkerContext::WorkerStatisticsPage

Public Class Methods

new(version, response, solution) click to toggle source

Initialize the WorkerStatisticsPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [WorkerStatisticsPage] WorkerStatisticsPage

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb
45 def initialize(version, response, solution)
46   super(version, response)
47 
48   # Path Solution
49   @solution = solution
50 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of WorkerStatisticsInstance @param [Hash] payload Payload response from the API @return [WorkerStatisticsInstance] WorkerStatisticsInstance

   # File lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb
56 def get_instance(payload)
57   WorkerStatisticsInstance.new(
58       @version,
59       payload,
60       workspace_sid: @solution[:workspace_sid],
61       worker_sid: @solution[:worker_sid],
62   )
63 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb
67 def to_s
68   '<Twilio.Taskrouter.V1.WorkerStatisticsPage>'
69 end