Class: MQ
- Inherits:
-
Object
- Object
- MQ
- Defined in:
- lib/moqueue/overloads.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ MQ
constructor
A new instance of MQ.
- #queue(name) ⇒ Object
- #topic(topic_name) ⇒ Object
Constructor Details
#initialize(*args) ⇒ MQ
Returns a new instance of MQ.
16 17 |
# File 'lib/moqueue/overloads.rb', line 16 def initialize(*args) end |
Class Method Details
.fanout(name, opts = {}) ⇒ Object
10 11 12 |
# File 'lib/moqueue/overloads.rb', line 10 def fanout(name, opts={}) Moqueue::MockExchange.new(opts.merge(:fanout=>name)) end |
.queue(name) ⇒ Object
6 7 8 |
# File 'lib/moqueue/overloads.rb', line 6 def queue(name) Moqueue::MockQueue.new(name) end |
Instance Method Details
#queue(name) ⇒ Object
19 20 21 |
# File 'lib/moqueue/overloads.rb', line 19 def queue(name) Moqueue::MockQueue.new(name) end |
#topic(topic_name) ⇒ Object
23 24 25 |
# File 'lib/moqueue/overloads.rb', line 23 def topic(topic_name) Moqueue::MockExchange.new(:topic=>topic_name) end |