class Healthyr::EventHandler

Constants

EVENT_NAMES

Public Class Methods

new() click to toggle source
# File lib/healthyr/event_handler.rb, line 5
def initialize
  ActiveSupport::Notifications.subscribe(EVENT_NAMES) do |*args|
    event_received(Event.new(*args))
  end
end

Public Instance Methods

event_received(event) click to toggle source
# File lib/healthyr/event_handler.rb, line 11
def event_received(event)
  EventPool.add(event)
end