Sha256: e33c75195fc8d287cc1228210a5db83cbec9714ee600f3227e5534851cdb20c8

Contents?: true

Size: 248 Bytes

Versions: 5

Compression:

Stored size: 248 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)
        # do nothing
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
backgrounded-0.7.5 lib/backgrounded/handler/no_op_handler.rb
backgrounded-0.7.4 lib/backgrounded/handler/no_op_handler.rb
backgrounded-0.7.3 lib/backgrounded/handler/no_op_handler.rb
backgrounded-0.7.2 lib/backgrounded/handler/no_op_handler.rb
backgrounded-0.7.1 lib/backgrounded/handler/no_op_handler.rb