Sha256: ece4988e5b76bfd48ad1282ad6df8fe6a5b0265a98c993e875df14eb98b36b28

Contents?: true

Size: 259 Bytes

Versions: 5

Compression:

Stored size: 259 Bytes

Contents

module Backgrounded
  module Handler
    # throw requests out the window
    # useful for test environment to avoid any background work
    class NoOpHandler
      def request(object, method, args, options={})
        # do nothing
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
backgrounded-2.1.2 lib/backgrounded/handler/no_op_handler.rb
backgrounded-2.1.1 lib/backgrounded/handler/no_op_handler.rb
backgrounded-2.1.0 lib/backgrounded/handler/no_op_handler.rb
backgrounded-2.0.0.pre2 lib/backgrounded/handler/no_op_handler.rb
backgrounded-2.0.0.pre1 lib/backgrounded/handler/no_op_handler.rb