Module: Medi8::NotificationHandler::ClassMethods

Defined in:
lib/medi8/notifications.rb

Overview

Registers a class as a notification handler for a specific event class.

Instance Method Summary collapse

Instance Method Details

#subscribes_to(event_class, async: false) ⇒ Object



12
13
14
# File 'lib/medi8/notifications.rb', line 12

def subscribes_to(event_class, async: false)
  Medi8.registry.register_notification(event_class, self, async: async)
end