Class: Jp::AbstractProducer
- Inherits:
-
AbstractClient
- Object
- AbstractClient
- Jp::AbstractProducer
- Defined in:
- lib/rb/jp/producer.rb
Direct Known Subclasses
Instance Method Summary collapse
- #add(message) ⇒ Object
-
#initialize(queue, options = {}) ⇒ AbstractProducer
constructor
A new instance of AbstractProducer.
Constructor Details
#initialize(queue, options = {}) ⇒ AbstractProducer
Returns a new instance of AbstractProducer.
9 10 11 |
# File 'lib/rb/jp/producer.rb', line 9 def initialize queue, = {} super queue, end |
Instance Method Details
#add(message) ⇒ Object
12 13 14 |
# File 'lib/rb/jp/producer.rb', line 12 def add @client.add @queue, translate() end |