Class: Fluffle::Testing::Loopback::Exchange
- Inherits:
-
Object
- Object
- Fluffle::Testing::Loopback::Exchange
- Defined in:
- lib/fluffle/testing.rb
Instance Method Summary collapse
-
#initialize(server) ⇒ Exchange
constructor
A new instance of Exchange.
- #publish(payload, opts) ⇒ Object
Constructor Details
#initialize(server) ⇒ Exchange
Returns a new instance of Exchange.
108 109 110 |
# File 'lib/fluffle/testing.rb', line 108 def initialize(server) @server = server end |
Instance Method Details
#publish(payload, opts) ⇒ Object
112 113 114 |
# File 'lib/fluffle/testing.rb', line 112 def publish(payload, opts) @server.publish(payload, opts) end |