Sha256: 4332388709b114258f684fa50f0bc5b1f729b145d6a19c32e32fa166bdcc657f

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 Bytes

Contents

module NonRailsApp
  module EventHandler
    extend self

    def handle_event(event)
      puts "NonRailsApp::EventHandler - Consumed event: #{event.name} with payload: #{event.payload}"
      RabbitFeed::Producer.publish_event 'application_acknowledges_event', ({ 'event_name' => event.name }.merge event.payload)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rabbit_feed-3.0.3 example/non_rails_app/lib/non_rails_app/event_handler.rb
rabbit_feed-3.0.2 example/non_rails_app/lib/non_rails_app/event_handler.rb
rabbit_feed-3.0.1 example/non_rails_app/lib/non_rails_app/event_handler.rb
rabbit_feed-3.0.0 example/non_rails_app/lib/non_rails_app/event_handler.rb