lib/twilio-ruby/rest/api/v2010/account/application.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/api/v2010/account/application.rb in twilio-ruby-5.6.1

- old
+ new

@@ -84,11 +84,11 @@ 'POST', @uri, data: data ) - ApplicationInstance.new(@version, payload, account_sid: @solution[:account_sid]) + ApplicationInstance.new(@version, payload, account_sid: @solution[:account_sid], ) end ## # Lists ApplicationInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into @@ -120,11 +120,11 @@ # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results def stream(friendly_name: :unset, limit: nil, page_size: nil) limits = @version.read_limits(limit, page_size) - page = self.page(friendly_name: friendly_name, page_size: limits[:page_size]) + page = self.page(friendly_name: friendly_name, page_size: limits[:page_size], ) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]) end ## @@ -132,11 +132,11 @@ # This operation lazily loads records as efficiently as possible until the limit # is reached. def each limits = @version.read_limits - page = self.page(page_size: limits[:page_size]) + page = self.page(page_size: limits[:page_size], ) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]).each {|x| yield x} end @@ -202,11 +202,11 @@ ## # Build an instance of ApplicationInstance # @param [Hash] payload Payload response from the API # @return [ApplicationInstance] ApplicationInstance def get_instance(payload) - ApplicationInstance.new(@version, payload, account_sid: @solution[:account_sid]) + ApplicationInstance.new(@version, payload, account_sid: @solution[:account_sid], ) end ## # Provide a user friendly representation def to_s @@ -224,11 +224,11 @@ # @return [ApplicationContext] ApplicationContext def initialize(version, account_sid, sid) super(version) # Path Solution - @solution = {account_sid: account_sid, sid: sid} + @solution = {account_sid: account_sid, sid: sid, } @uri = "/Accounts/#{@solution[:account_sid]}/Applications/#{@solution[:sid]}.json" end ## # Deletes the ApplicationInstance @@ -247,11 +247,11 @@ 'GET', @uri, params, ) - ApplicationInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid]) + ApplicationInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid], ) end ## # Update the ApplicationInstance # @param [String] friendly_name A human readable descriptive text for this @@ -311,11 +311,11 @@ 'POST', @uri, data: data, ) - ApplicationInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid]) + ApplicationInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid], ) end ## # Provide a user friendly representation def to_s @@ -361,19 +361,19 @@ 'voice_url' => payload['voice_url'], } # Context @instance_context = nil - @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid']} + @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'], } end ## # Generate an instance context for the instance, the context is capable of # performing various actions. All instance actions are proxied to the context # @return [ApplicationContext] ApplicationContext for this ApplicationInstance def context unless @instance_context - @instance_context = ApplicationContext.new(@version, @params['account_sid'], @params['sid']) + @instance_context = ApplicationContext.new(@version, @params['account_sid'], @params['sid'], ) end @instance_context end ## \ No newline at end of file