Sha256: 1611dafdd37b8d718da576727453eceb2fe152cf481d2ce706500d1c6c7b4f94
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
# frozen_string_literal: true module BunnyMock module Exchanges class Header < BunnyMock::Exchange # @private # @return [Regexp] Any match ANY = /^any$/i # @private # @return [Regexp] All match ALL = /^all$/i # # API # ## # Deliver a message to routes with header matches # # @param [Object] payload Message content # @param [Hash] opts Message properties # @param [String] key Routing key # # @api public # def deliver(payload, opts, key) # ~: proper headers exchange implementation @routes[key].publish payload, opts if @routes[key] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bunny-mock-1.4.0 | lib/bunny_mock/exchanges/headers.rb |
bunny-mock-1.3.0 | lib/bunny_mock/exchanges/headers.rb |