Class: Fluffle::Testing::Loopback::Exchange
- Inherits:
-
Object
- Object
- Fluffle::Testing::Loopback::Exchange
- Defined in:
- lib/fluffle/testing.rb
Instance Method Summary collapse
-
#initialize(server, channel) ⇒ Exchange
constructor
A new instance of Exchange.
- #on_return(&block) ⇒ Object
- #publish(payload, opts) ⇒ Object
Constructor Details
#initialize(server, channel) ⇒ Exchange
Returns a new instance of Exchange.
164 165 166 167 |
# File 'lib/fluffle/testing.rb', line 164 def initialize(server, channel) @server = server @channel = channel end |
Instance Method Details
#on_return(&block) ⇒ Object
173 174 |
# File 'lib/fluffle/testing.rb', line 173 def on_return(&block) end |
#publish(payload, opts) ⇒ Object
169 170 171 |
# File 'lib/fluffle/testing.rb', line 169 def publish(payload, opts) @channel.publish payload, opts end |