Parent

Included Modules

Files

Moqueue::MockBroker

Attributes

registered_queues[R]

Public Class Methods

new() click to toggle source
# File lib/moqueue/mock_broker.rb, line 9
def initialize
  reset!
end

Public Instance Methods

find_direct_exchange(name) click to toggle source
# File lib/moqueue/mock_broker.rb, line 32
def find_direct_exchange(name)
  @registered_direct_exchanges[name]
end
find_fanout_exchange(fanout_name) click to toggle source
# File lib/moqueue/mock_broker.rb, line 48
def find_fanout_exchange(fanout_name)
  @registered_fanout_exchanges[fanout_name]
end
find_queue(name) click to toggle source
# File lib/moqueue/mock_broker.rb, line 20
def find_queue(name)
  @registered_queues[name]
end
find_topic_exchange(topic) click to toggle source
# File lib/moqueue/mock_broker.rb, line 40
def find_topic_exchange(topic)
  @registered_topic_exchanges[topic]
end
register_direct_exchange(exchange) click to toggle source
# File lib/moqueue/mock_broker.rb, line 28
def register_direct_exchange(exchange)
  @registered_direct_exchanges[exchange.direct] = exchange
end
register_fanout_exchange(exchange) click to toggle source
# File lib/moqueue/mock_broker.rb, line 44
def register_fanout_exchange(exchange)
  @registered_fanout_exchanges[exchange.fanout] = exchange
end
register_queue(queue) click to toggle source
# File lib/moqueue/mock_broker.rb, line 24
def register_queue(queue)
  @registered_queues[queue.name] = queue
end
register_topic_exchange(exchange) click to toggle source
# File lib/moqueue/mock_broker.rb, line 36
def register_topic_exchange(exchange)
  @registered_topic_exchanges[exchange.topic] = exchange
end
reset!() click to toggle source
# File lib/moqueue/mock_broker.rb, line 13
def reset!
  @registered_queues = {}
  @registered_direct_exchanges = {}
  @registered_topic_exchanges = {}
  @registered_fanout_exchanges = {}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.