Method: Nsq::Producer#write
- Defined in:
- lib/nsq/producer.rb
#write(*raw_messages) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/nsq/producer.rb', line 32 def write(*) if !@topic raise 'No topic specified. Either specify a topic when instantiating the Producer or use write_to_topic.' end write_to_topic(@topic, *) end |