Sha256: 40ac69a0ddee9deb35f804ec09570b95dc5a03fa95f2c99be6714132e63087db

Contents?: true

Size: 300 Bytes

Versions: 4

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

require 'cased/publishers/base'

module Cased
  module Publishers
    class TestPublisher < Base
      attr_reader :events

      def initialize
        super
        @events = []
      end

      def publish(event)
        @events << event
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cased-ruby-0.8.0 lib/cased/publishers/test_publisher.rb
cased-ruby-0.7.1 lib/cased/publishers/test_publisher.rb
cased-ruby-0.7.0 lib/cased/publishers/test_publisher.rb
cased-ruby-0.6.1 lib/cased/publishers/test_publisher.rb