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.
- #publish(payload, opts) ⇒ Object
Constructor Details
#initialize(server, channel) ⇒ Exchange
Returns a new instance of Exchange.
158 159 160 161 |
# File 'lib/fluffle/testing.rb', line 158 def initialize(server, channel) @server = server @channel = channel end |
Instance Method Details
#publish(payload, opts) ⇒ Object
163 164 165 |
# File 'lib/fluffle/testing.rb', line 163 def publish(payload, opts) @channel.publish payload, opts end |