Class: RubyRabbitmqJanus::Rabbit::Publisher::Base
- Defined in:
- lib/rrj/rabbit/publisher/base.rb
Overview
This publisher send and read an message in queues
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseEvent
Instance Method Summary collapse
-
#initialize(exchange) ⇒ Base
constructor
Intialize a publisher for sending and reading a message.
-
#publish(request) ⇒ Object
Publish an message in queue.
Constructor Details
#initialize(exchange) ⇒ Base
Intialize a publisher for sending and reading a message
16 17 18 19 20 21 22 |
# File 'lib/rrj/rabbit/publisher/base.rb', line 16 def initialize(exchange) super() @exchange = exchange.default_exchange @message = nil rescue raise Errors::Rabbit::Publisher::Base::Initialize end |