Class: Lagomorph::QueueBuilder

Inherits:
Struct
  • Object
show all
Defined in:
lib/lagomorph/queue_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channelObject

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



5
6
7
# File 'lib/lagomorph/queue_builder.rb', line 5

def channel
  @channel
end

Instance Method Details

#queue(name, opts = {}) ⇒ Object



6
7
8
# File 'lib/lagomorph/queue_builder.rb', line 6

def queue(name, opts={})
  QueueAdapter.new(channel.queue(name, opts))
end

#reply_queueObject

Build a reply queue



11
12
13
# File 'lib/lagomorph/queue_builder.rb', line 11

def reply_queue
  queue('', exclusive: true)
end