Module: Hutch::Consumer
- Defined in:
- lib/hutch/consumer.rb
Overview
Include this module in a class to register it as a consumer. Consumers gain a class method called ‘consume`, which should be used to register the routing keys a consumer is interested in.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 |
# File 'lib/hutch/consumer.rb', line 8 def self.included(base) base.extend(ClassMethods) Hutch.register_consumer(base) end |