Class: Slnky::Transport::MockExchange
- Inherits:
-
Object
- Object
- Slnky::Transport::MockExchange
- Defined in:
- lib/slnky/transport.rb
Instance Method Summary collapse
-
#initialize ⇒ MockExchange
constructor
A new instance of MockExchange.
- #publish(object, options = {}) ⇒ Object
Constructor Details
#initialize ⇒ MockExchange
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, ={}) puts "publish: #{object.inspect}: #{options.inspect}" if @verbose end |