lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-6.11.0

- old
+ new

@@ -18,10 +18,11 @@ class Api < ApiBase class V2010 < Version class AccountContext < InstanceContext class CallList < ListResource + ## # Initialize the CallList # @param [Version] version Version that contains the resource # @return [CallList] CallList def initialize(version, account_sid: nil) @@ -144,10 +145,11 @@ 'Url' => url, 'Twiml' => twiml, 'ApplicationSid' => application_sid, }) + payload = @version.create('POST', @uri, data: data) CallInstance.new( @version, payload, account_sid: @solution[:account_sid], @@ -349,18 +351,20 @@ ## # Delete the CallInstance # @return [Boolean] True if delete succeeds, false otherwise def delete + @version.delete('DELETE', @uri) end ## # Fetch the CallInstance # @return [CallInstance] Fetched CallInstance def fetch + payload = @version.fetch('GET', @uri) CallInstance.new( @version, payload, account_sid: @solution[:account_sid], @@ -402,9 +406,10 @@ 'StatusCallbackMethod' => status_callback_method, 'Twiml' => twiml, 'TimeLimit' => time_limit, }) + payload = @version.update('POST', @uri, data: data) CallInstance.new( @version, payload, account_sid: @solution[:account_sid],