Class: AmqpQueueDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/gorgon/amqp_service.rb

Instance Method Summary collapse

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

#popObject



9
10
11
12
13
# File 'lib/gorgon/amqp_service.rb', line 9

def pop
  m = @queue.pop
  payload = m[2]
  return payload
end