Module: FastlyNsq::ConsumerTesting::ClassMethods
- Defined in:
- lib/fastly_nsq/testing.rb
Instance Method Summary collapse
Instance Method Details
#clear ⇒ Object
264 265 266 |
# File 'lib/fastly_nsq/testing.rb', line 264 def clear FastlyNsq::Messages..clear end |
#messages(topic = nil) ⇒ Object
258 259 260 261 262 |
# File 'lib/fastly_nsq/testing.rb', line 258 def (topic = nil) return FastlyNsq::Messages..values.flatten unless topic FastlyNsq::Messages.[topic] end |