Class: Slnky::Transport::MockExchange

Inherits:
Object
  • Object
show all
Defined in:
lib/slnky/transport.rb

Instance Method Summary collapse

Constructor Details

#initializeMockExchange

Returns a new instance of MockExchange.



102
103
104
# File 'lib/slnky/transport.rb', line 102

def initialize
  @verbose = false
end

Instance Method Details

#publish(object, options = {}) ⇒ Object



106
107
108
# File 'lib/slnky/transport.rb', line 106

def publish(object, options={})
  puts "publish: #{object.inspect}: #{options.inspect}" if @verbose
end