Class: Smith::Messaging::Sender
- Inherits:
-
Object
- Object
- Smith::Messaging::Sender
- Defined in:
- lib/fake_smith.rb
Instance Method Summary collapse
-
#initialize(queue_name) ⇒ Sender
constructor
A new instance of Sender.
- #publish(message, &blk) ⇒ Object
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(, &blk) FakeSmith.(@queue_name, ) end |