Class: RabbitMQ::Actors::Subscriber Abstract
- Inherits:
-
Base::Consumer
- Object
- Base::Agent
- Base::Consumer
- RabbitMQ::Actors::Subscriber
- Defined in:
- lib/rabbitmq/actors/patterns/publish_subscribe/subscriber.rb
Overview
This class is abstract.
Subclass and override #perform to define your customized subscriber class.
A consumer of all messages produced by a fanout RabbitMQ exchange.
Instance Attribute Summary collapse
-
#exchange_name ⇒ Object
readonly
Returns the value of attribute exchange_name.
Attributes inherited from Base::Agent
Instance Method Summary collapse
-
#initialize(exchange_name:, **opts) ⇒ Subscriber
constructor
Rest of options required by your subclass.
Methods inherited from Base::Consumer
Constructor Details
#initialize(exchange_name:, **opts) ⇒ Subscriber
Rest of options required by your subclass.
38 39 40 |
# File 'lib/rabbitmq/actors/patterns/publish_subscribe/subscriber.rb', line 38 def initialize(exchange_name:, **opts) super(opts.merge(exchange_name: exchange_name)) end |
Instance Attribute Details
#exchange_name ⇒ Object (readonly)
Returns the value of attribute exchange_name.
32 33 34 |
# File 'lib/rabbitmq/actors/patterns/publish_subscribe/subscriber.rb', line 32 def exchange_name @exchange_name end |