class Freddy::Adapters::BunnyAdapter::Channel
Constants
- NO_ROUTE
Public Class Methods
Source
# File lib/freddy/adapters/bunny_adapter.rb, line 40 def initialize(channel) @channel = channel end
Public Instance Methods
Source
# File lib/freddy/adapters/bunny_adapter.rb, line 50 def on_no_route default_exchange.on_return do |return_info, properties, _content| yield(properties[:correlation_id]) if return_info[:reply_code] == NO_ROUTE end end
Source
# File lib/freddy/adapters/bunny_adapter.rb, line 46 def queue(*) Queue.new(@channel.queue(*)) end