Sha256: e276542b8908b1c8c3887f7b3225c4f713cb5009914069f69b42ec0ea3e52837

Contents?: true

Size: 418 Bytes

Versions: 48

Compression:

Stored size: 418 Bytes

Contents

require 'flydata-core/event/flydata_event_handler_registry'

module FlydataCore
  module Event
    class FlydataEventProcessor
      def self.process(event)
        handlers = FlydataEventHandlerRegistry.handlers(event.noun, event.verb)
        if handlers.nil? ||  handlers.empty?
          return
        end
        handlers.each do |handler|
          handler.handle(event)
        end
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
flydata-0.8.10.2 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.10.1 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.9.11 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.10 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.9 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.8 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.7 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.6 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.5 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.4 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.3 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.2 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.1 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.8.0 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.7.19 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.7.18 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.7.17 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.7.16 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.7.15 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.7.14 flydata-core/lib/flydata-core/event/flydata_event_processor.rb