lib/twilio-ruby/rest/notify/v1/service/binding.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/notify/v1/service/binding.rb in twilio-ruby-5.6.1

- old
+ new

@@ -51,11 +51,11 @@ 'POST', @uri, data: data ) - BindingInstance.new(@version, payload, service_sid: @solution[:service_sid]) + BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], ) end ## # Lists BindingInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into @@ -116,11 +116,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 @@ -193,11 +193,11 @@ ## # Build an instance of BindingInstance # @param [Hash] payload Payload response from the API # @return [BindingInstance] BindingInstance def get_instance(payload) - BindingInstance.new(@version, payload, service_sid: @solution[:service_sid]) + BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], ) end ## # Provide a user friendly representation def to_s @@ -216,11 +216,11 @@ # @return [BindingContext] BindingContext def initialize(version, service_sid, sid) super(version) # Path Solution - @solution = {service_sid: service_sid, sid: sid} + @solution = {service_sid: service_sid, sid: sid, } @uri = "/Services/#{@solution[:service_sid]}/Bindings/#{@solution[:sid]}" end ## # Fetch a BindingInstance @@ -232,11 +232,11 @@ 'GET', @uri, params, ) - BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid]) + BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid], ) end ## # Deletes the BindingInstance # @return [Boolean] true if delete succeeds, true otherwise @@ -283,19 +283,19 @@ 'links' => payload['links'], } # Context @instance_context = nil - @params = {'service_sid' => service_sid, 'sid' => sid || @properties['sid']} + @params = {'service_sid' => service_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 [BindingContext] BindingContext for this BindingInstance def context unless @instance_context - @instance_context = BindingContext.new(@version, @params['service_sid'], @params['sid']) + @instance_context = BindingContext.new(@version, @params['service_sid'], @params['sid'], ) end @instance_context end ## \ No newline at end of file