Module Moqueue::ObjectMethods
In: lib/moqueue/object_methods.rb

Methods

Public Instance methods

Takes a hash to specify the exchange type and its name.

 topic = mock_exchange(:topic => 'topic exchange')

Takes a string name as a parameter. Each queue name may only be used once. Multiple calls to mock_queue with the same name will return the same object.

Overloads the class-level method calls typically used by AMQP code such as MQ.direct, MQ.queue, MQ.topic, etc.

Deletes all exchanges and queues from the mock broker. As a consequence of removing queues, all bindings and subscriptions are also deleted.

[Validate]