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

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ WorkerChannelListResponse

Returns a new instance of WorkerChannelListResponse.

Parameters:



348
349
350
351
352
353
354
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 348

def initialize(version, payload, key)
   @worker_channel_instance = payload.body[key].map do |data|
    WorkerChannelInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headers ⇒ Object



441
442
443
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 441

def headers
  @headers
end

#status_code ⇒ Object



445
446
447
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 445

def status_code
  @status_code
end

#worker_channel ⇒ Object



437
438
439
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 437

def worker_channel
    @worker_channel
end

#worker_channel_instance ⇒ Object



356
357
358
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 356

def worker_channel_instance
    @instance
end