class Twilio::REST::Taskrouter::V1::WorkspaceContext::WorkerContext::WorkerChannelPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the WorkerChannelPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [WorkerChannelPage] WorkerChannelPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb 126 def initialize(version, response, solution) 127 super(version, response) 128 129 # Path Solution 130 @solution = solution 131 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of WorkerChannelInstance
@param [Hash] payload Payload response from the API @return [WorkerChannelInstance] WorkerChannelInstance
# File lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb 137 def get_instance(payload) 138 WorkerChannelInstance.new( 139 @version, 140 payload, 141 workspace_sid: @solution[:workspace_sid], 142 worker_sid: @solution[:worker_sid], 143 ) 144 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb 148 def to_s 149 '<Twilio.Taskrouter.V1.WorkerChannelPage>' 150 end