ahmad-elassuty/event_router

View on GitHub
examples/event_store/order_placed.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Examples
  module EventStore
    class OrderPlaced
      def self.handle(event:, payload:)
        puts "#{'=' * 10} [EventStore] #{'=' * 10}"
        puts 'Received order_placed'
        puts event.inspect
        puts payload.inspect
        puts '=' * 32
      end
    end
  end
end