Sha256: 4ee9ceeb083ace2fbed5aa5a9c0c44b8836ba65036051dbced4c658df5d68ab5

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 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

3 entries across 3 versions & 1 rubygems

Version Path
flydata-0.6.0 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.5.21 flydata-core/lib/flydata-core/event/flydata_event_processor.rb
flydata-0.5.20 flydata-core/lib/flydata-core/event/flydata_event_processor.rb