Class: BunnyMock::Channel
- Inherits:
-
Object
- Object
- BunnyMock::Channel
- Defined in:
- lib/bunny_mock.rb
Instance Attribute Summary collapse
-
#queues ⇒ Object
readonly
Returns the value of attribute queues.
Instance Method Summary collapse
Instance Attribute Details
#queues ⇒ Object (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 |