Class: Fluffle::Testing::Loopback::Exchange

Inherits:
Object
  • Object
show all
Defined in:
lib/fluffle/testing.rb

Instance Method Summary collapse

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