class Bunny::Channel

Public Instance Methods

basic_publish(payload, exchange, routing_key, opts = {}) click to toggle source
# File lib/bunny/testing.rb, line 68
def basic_publish(payload, exchange, routing_key, opts = {})
  Bunny::Testing.exchanges[exchange] << {payload: payload, routing_key: routing_key, opts: opts}
end
open() click to toggle source
# File lib/bunny/testing.rb, line 72
def open
  @status = :open

  self
end
register_exchange(exchange) click to toggle source
# File lib/bunny/testing.rb, line 78
def register_exchange(exchange)
  Bunny::Testing.exchanges[exchange.name] = []
end