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

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

Instance Method Summary collapse

Constructor Details

#initialize(version, worker_statistics_instance, headers, status_code) ⇒ WorkerStatisticsInstanceMetadata

Initializes a new WorkerStatisticsInstanceMetadata.

Parameters:

  • Version that contains the resource

  • worker_statistics_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



164
165
166
167
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb', line 164

def initialize(version, worker_statistics_instance, headers, status_code)
    super(version, headers, status_code)
    @worker_statistics_instance = worker_statistics_instance
end

Instance Method Details

#headersObject



173
174
175
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb', line 173

def headers
    @headers
end

#status_codeObject



177
178
179
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb', line 177

def status_code
    @status_code
end

#to_sObject



181
182
183
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb', line 181

def to_s
  "<Twilio.Api.V2010.WorkerStatisticsInstanceMetadata status=#{@status_code}>"
end

#worker_statisticsObject



169
170
171
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb', line 169

def worker_statistics
    @worker_statistics_instance
end