Class: Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkerContext::WorkerChannelListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkerContext::WorkerChannelListResponse
- 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
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ WorkerChannelListResponse
constructor
A new instance of WorkerChannelListResponse.
- #status_code ⇒ Object
- #worker_channel ⇒ Object
- #worker_channel_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ WorkerChannelListResponse
Returns a new instance of WorkerChannelListResponse.
340 341 342 343 344 345 346 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 340 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
433 434 435 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 433 def headers @headers end |
#status_code ⇒ Object
437 438 439 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 437 def status_code @status_code end |
#worker_channel ⇒ Object
429 430 431 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 429 def worker_channel @worker_channel end |
#worker_channel_instance ⇒ Object
348 349 350 |
# File 'lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb', line 348 def worker_channel_instance @instance end |