Class: AmqpQueueDecorator
- Inherits:
-
Object
- Object
- AmqpQueueDecorator
- Defined in:
- lib/gorgon/amqp_service.rb
Instance Method Summary collapse
-
#initialize(queue) ⇒ AmqpQueueDecorator
constructor
A new instance of AmqpQueueDecorator.
- #pop ⇒ Object
Constructor Details
#initialize(queue) ⇒ AmqpQueueDecorator
Returns a new instance of AmqpQueueDecorator.
5 6 7 |
# File 'lib/gorgon/amqp_service.rb', line 5 def initialize queue @queue = queue end |
Instance Method Details
#pop ⇒ Object
9 10 11 12 13 |
# File 'lib/gorgon/amqp_service.rb', line 9 def pop m = @queue.pop payload = m[2] return payload end |