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

- old
+ new

@@ -16,10 +16,11 @@ module Twilio module REST class Api < ApiBase class V2010 < Version class AccountList < ListResource + ## # Initialize the AccountList # @param [Version] version Version that contains the resource # @return [AccountList] AccountList def initialize(version) @@ -39,10 +40,11 @@ data = Twilio::Values.of({ 'FriendlyName' => friendly_name, }) + payload = @version.create('POST', @uri, data: data) AccountInstance.new( @version, payload, ) @@ -196,10 +198,11 @@ ## # Fetch the AccountInstance # @return [AccountInstance] Fetched AccountInstance def fetch + payload = @version.fetch('GET', @uri) AccountInstance.new( @version, payload, sid: @solution[:sid], @@ -219,9 +222,10 @@ data = Twilio::Values.of({ 'FriendlyName' => friendly_name, 'Status' => status, }) + payload = @version.update('POST', @uri, data: data) AccountInstance.new( @version, payload, sid: @solution[:sid],