Class: Euston::RabbitMq::HandlerBinder
- Inherits:
-
Object
- Object
- Euston::RabbitMq::HandlerBinder
- Defined in:
- lib/euston-rabbitmq/euston/handler_binder.rb
Direct Known Subclasses
Instance Method Summary collapse
- #ensure_bindings_exist ⇒ Object
-
#initialize(channel, references, logger = Euston::NullLogger.instance) ⇒ HandlerBinder
constructor
A new instance of HandlerBinder.
Methods included from Exchanges
#default_exchange_options, #default_publish_options, #get_exchange
Methods included from Queues
#default_queue_options, #get_queue
Constructor Details
#initialize(channel, references, logger = Euston::NullLogger.instance) ⇒ HandlerBinder
Returns a new instance of HandlerBinder.
7 8 9 10 11 |
# File 'lib/euston-rabbitmq/euston/handler_binder.rb', line 7 def initialize channel, references, logger = Euston::NullLogger.instance @channel = channel @references = references @log = logger end |
Instance Method Details
#ensure_bindings_exist ⇒ Object
13 14 15 16 17 |
# File 'lib/euston-rabbitmq/euston/handler_binder.rb', line 13 def ensure_bindings_exist @references.each do |reference| ensure_bindings_exist_for_reference reference end end |