Sha256: 25813423f7fa8965554fffffa49908917f1b0b906a31b931fc8fa6a6ce194fdb
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
module BunnyMock module Exchanges class Direct < BunnyMock::Exchange # # API # ## # Deliver a message to route with direct key match # # @param [Object] payload Message content # @param [Hash] opts Message properties # @param [String] key Routing key # # @api public # def deliver(payload, opts, key) @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.1.0 | lib/bunny_mock/exchanges/direct.rb |
bunny-mock-1.0.0 | lib/bunny_mock/exchanges/direct.rb |