Class: Bunny::Channel
- Inherits:
-
Object
- Object
- Bunny::Channel
- Defined in:
- lib/bunny/testing.rb
Instance Method Summary collapse
- #basic_publish(payload, exchange, routing_key, opts = {}) ⇒ Object
- #open ⇒ Object
- #register_exchange(exchange) ⇒ Object
Instance Method Details
#basic_publish(payload, exchange, routing_key, opts = {}) ⇒ Object
68 69 70 |
# 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 ⇒ Object
72 73 74 75 76 |
# File 'lib/bunny/testing.rb', line 72 def open @status = :open self end |