Sha256: 811c212f3cc241816e3fb3ce2440758cba34b297d09433382d386673fb8e1e36

Contents?: true

Size: 286 Bytes

Versions: 13

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

require 'cased/publishers/base'

module Cased
  module Publishers
    class TestPublisher < Base
      attr_reader :events

      def initialize
        @events = []
      end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cased-ruby-0.5.2 lib/cased/publishers/test_publisher.rb
cased-ruby-0.5.1 lib/cased/publishers/test_publisher.rb
cased-ruby-0.5.0 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.8 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.7 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.6 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.5 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.4 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.3 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.2 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.1 lib/cased/publishers/test_publisher.rb
cased-ruby-0.4.0 lib/cased/publishers/test_publisher.rb
cased-ruby-0.3.3 lib/cased/publishers/test_publisher.rb