Sha256: df3d484bc678b6b49f14d0c7e29c8b1e6bdd5831f864561fed17fdadf5b902c0
Contents?: true
Size: 335 Bytes
Versions: 3
Compression:
Stored size: 335 Bytes
Contents
require_relative "../lib/message_queue" MessageQueue.with_connection(:adapter => :bunny, :serializer => :message_pack) do |conn| publisher = conn.new_publisher( :exchange => { :name => "time", :type => :topic }, :message => { :routing_key => "time.now" } ) publisher.publish Time.now.to_s end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
message_queue-0.0.4 | examples/publisher.rb |
message_queue-0.0.3 | examples/publisher.rb |
message_queue-0.0.2 | examples/publisher.rb |