Method: Bunny::Queue#publish
- Defined in:
- lib/bunny/queue.rb
#publish(payload, opts = {}) ⇒ Object
Publishes a message to the queue via default exchange. Takes the same arguments as Exchange#publish
316 317 318 319 320 |
# File 'lib/bunny/queue.rb', line 316 def publish(payload, opts = {}) @channel.default_exchange.publish(payload, opts.merge(:routing_key => @name)) self end |