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

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

Instance Method Summary collapse

Constructor Details

#initialize(version, worker_channel_instance, headers, status_code) ⇒ WorkerChannelInstanceMetadata

Initializes a new WorkerChannelInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}WorkerChannelInstance] —

    worker_channel_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



322
323
324
325
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 322

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

Instance Method Details

#headers ⇒ Object



331
332
333
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 331

def headers
    @headers
end

#status_code ⇒ Object



335
336
337
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 335

def status_code
    @status_code
end

#to_s ⇒ Object



339
340
341
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 339

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

#worker_channel ⇒ Object



327
328
329
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 327

def worker_channel
    @worker_channel_instance
end