Class: Gorgon::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.



6
7
8
# File 'lib/gorgon/amqp_service.rb', line 6

def initialize queue
  @queue = queue
end

Instance Method Details

#popObject



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

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