Sha256: fb167d2fabd605b59ad613eba4ad150d28f3e2e03945fd158d3025ea5a748ece
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
module Maitredee module Adapters class TestAdapter < BaseAdapter # logs message published def publish(message) messages << message end # returns all messages that have been published since last #reset def messages @messages ||= [] end # no-op def add_worker(subscriber_class) end # resets messages logged def reset messages.clear end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maitredee-0.8.3 | lib/maitredee/adapters/test_adapter.rb |