Class: Deimos::Backends::Test
Overview
Backend which saves messages to an in-memory hash.
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.execute(producer_class:, messages:) ⇒ Object
15 16 17 |
# File 'lib/deimos/backends/test.rb', line 15 def self.execute(producer_class:, messages:) self..concat(.map(&:to_h)) end |
.sent_messages ⇒ Array<Hash>
9 10 11 |
# File 'lib/deimos/backends/test.rb', line 9 def @sent_messages ||= [] end |