lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb in twilio-ruby-6.11.0

- old
+ new

@@ -19,10 +19,11 @@ class V1 < Version class WorkspaceContext < InstanceContext class WorkerContext < InstanceContext class WorkerChannelList < ListResource + ## # Initialize the WorkerChannelList # @param [Version] version Version that contains the resource # @return [WorkerChannelList] WorkerChannelList def initialize(version, workspace_sid: nil, worker_sid: nil) @@ -146,10 +147,11 @@ ## # Fetch the WorkerChannelInstance # @return [WorkerChannelInstance] Fetched WorkerChannelInstance def fetch + payload = @version.fetch('GET', @uri) WorkerChannelInstance.new( @version, payload, workspace_sid: @solution[:workspace_sid], @@ -171,9 +173,10 @@ data = Twilio::Values.of({ 'Capacity' => capacity, 'Available' => available, }) + payload = @version.update('POST', @uri, data: data) WorkerChannelInstance.new( @version, payload, workspace_sid: @solution[:workspace_sid],