Class: Smith::Messaging::Sender

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

Instance Method Summary collapse

Constructor Details

#initialize(queue_name) ⇒ Sender

Returns a new instance of Sender.



92
93
94
# File 'lib/fake_smith.rb', line 92

def initialize(queue_name)
  @queue_name = queue_name
end

Instance Method Details

#publish(message, &blk) ⇒ Object



96
97
98
# File 'lib/fake_smith.rb', line 96

def publish(message, &blk)
  FakeSmith.add_message(@queue_name, message)
end