Class: Gorgon::AmqpQueueDecorator
- Inherits:
-
Object
- Object
- Gorgon::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.
6 7 8 |
# File 'lib/gorgon/amqp_service.rb', line 6 def initialize queue @queue = queue end |
Instance Method Details
#pop ⇒ Object
10 11 12 13 14 |
# File 'lib/gorgon/amqp_service.rb', line 10 def pop m = @queue.pop payload = m[2] return payload end |