Class: RosettaQueue::BaseManager
- Inherits:
-
Object
- Object
- RosettaQueue::BaseManager
- Defined in:
- lib/rosetta_queue/consumer_managers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#consumers ⇒ Object
readonly
Returns the value of attribute consumers.
Class Method Summary collapse
Instance Method Summary collapse
- #add(message_handler, key = message_handler.class.to_s.underscore.to_sym) ⇒ Object
-
#initialize ⇒ BaseManager
constructor
A new instance of BaseManager.
Constructor Details
#initialize ⇒ BaseManager
Returns a new instance of BaseManager.
14 15 16 |
# File 'lib/rosetta_queue/consumer_managers/base.rb', line 14 def initialize @consumers = {} end |
Instance Attribute Details
#consumers ⇒ Object (readonly)
Returns the value of attribute consumers.
4 5 6 |
# File 'lib/rosetta_queue/consumer_managers/base.rb', line 4 def consumers @consumers end |
Class Method Details
.create {|manager| ... } ⇒ Object
7 8 9 10 11 |
# File 'lib/rosetta_queue/consumer_managers/base.rb', line 7 def create manager = self.new yield manager manager end |