Sha256: 3ddea140dc05bcc89685f8bd930f72e17aab6bfa8ca5756d2fe6eb20dadbdf9e
Contents?: true
Size: 510 Bytes
Versions: 3
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true module BunnyMock module Exchanges class Fanout < BunnyMock::Exchange # # API # ## # Deliver a message to all routes # # @param [Object] payload Message content # @param [Hash] opts Message properties # @param [String] key Routing key # # @api public # def deliver(payload, opts, _key) @routes.each_value { |destination| destination.publish(payload, opts) } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bunny-mock-1.2.2 | lib/bunny_mock/exchanges/fanout.rb |
bunny-mock-1.2.1 | lib/bunny_mock/exchanges/fanout.rb |
bunny-mock-1.2.0 | lib/bunny_mock/exchanges/fanout.rb |