Class: BunnyMock::Channel

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#queuesObject (readonly)

Returns the value of attribute queues.



41
42
43
# File 'lib/bunny_mock.rb', line 41

def queues
  @queues
end

Instance Method Details

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



42
43
44
45
# File 'lib/bunny_mock.rb', line 42

def queue(name, attrs = {})
  @queues ||= []
  Queue.new(name, attrs).tap { |q| @queues << q }
end