Class: Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkerInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, worker_instance, headers, status_code) ⇒ WorkerInstanceMetadata

Initializes a new WorkerInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}WorkerInstance]

    worker_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



579
580
581
582
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb', line 579

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

Instance Method Details

#headersObject



588
589
590
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb', line 588

def headers
    @headers
end

#status_codeObject



592
593
594
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb', line 592

def status_code
    @status_code
end

#to_sObject



596
597
598
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb', line 596

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

#workerObject



584
585
586
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb', line 584

def worker
    @worker_instance
end