lib/twilio-ruby/rest/preview/wireless/command.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/preview/wireless/command.rb in twilio-ruby-5.6.1

- old
+ new

@@ -83,11 +83,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 @@ -160,11 +160,11 @@ 'POST', @uri, data: data ) - CommandInstance.new(@version, payload) + CommandInstance.new(@version, payload, ) end ## # Provide a user friendly representation def to_s @@ -191,11 +191,11 @@ ## # Build an instance of CommandInstance # @param [Hash] payload Payload response from the API # @return [CommandInstance] CommandInstance def get_instance(payload) - CommandInstance.new(@version, payload) + CommandInstance.new(@version, payload, ) end ## # Provide a user friendly representation def to_s @@ -213,11 +213,11 @@ # @return [CommandContext] CommandContext def initialize(version, sid) super(version) # Path Solution - @solution = {sid: sid} + @solution = {sid: sid, } @uri = "/Commands/#{@solution[:sid]}" end ## # Fetch a CommandInstance @@ -229,11 +229,11 @@ 'GET', @uri, params, ) - CommandInstance.new(@version, payload, sid: @solution[:sid]) + CommandInstance.new(@version, payload, sid: @solution[:sid], ) end ## # Provide a user friendly representation def to_s @@ -269,19 +269,19 @@ 'url' => payload['url'], } # Context @instance_context = nil - @params = {'sid' => sid || @properties['sid']} + @params = {'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 [CommandContext] CommandContext for this CommandInstance def context unless @instance_context - @instance_context = CommandContext.new(@version, @params['sid']) + @instance_context = CommandContext.new(@version, @params['sid'], ) end @instance_context end ## \ No newline at end of file