lib/twilio-ruby/rest/preview/wireless/command.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/preview/wireless/command.rb in twilio-ruby-6.11.0

- old
+ new

@@ -16,10 +16,11 @@ module Twilio module REST class Preview < PreviewBase class Wireless < Version class CommandList < ListResource + ## # Initialize the CommandList # @param [Version] version Version that contains the resource # @return [CommandList] CommandList def initialize(version) @@ -57,10 +58,11 @@ 'CallbackUrl' => callback_url, 'CommandMode' => command_mode, 'IncludeSid' => include_sid, }) + payload = @version.create('POST', @uri, data: data) CommandInstance.new( @version, payload, ) @@ -204,9 +206,10 @@ ## # Fetch the CommandInstance # @return [CommandInstance] Fetched CommandInstance def fetch + payload = @version.fetch('GET', @uri) CommandInstance.new( @version, payload, sid: @solution[:sid],