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