Class: Brainguy::BasicNotifier
- Inherits:
-
Object
- Object
- Brainguy::BasicNotifier
- Defined in:
- lib/brainguy/basic_notifier.rb
Overview
A notifier encapsulates various strategies for notifying subscriptions of events. This is the most basic form of notifier. It just passes the event on with no extra logic.
Direct Known Subclasses
Instance Method Summary collapse
-
#notify(subscription, event) ⇒ Object
Notify a subscription of an event.
-
#result ⇒ Object
Some notifiers have interesting results.
Instance Method Details
#notify(subscription, event) ⇒ Object
Notify a subscription of an event
9 10 11 |
# File 'lib/brainguy/basic_notifier.rb', line 9 def notify(subscription, event) subscription.handle(event) end |
#result ⇒ Object
Some notifiers have interesting results. This one just returns nil.
15 16 17 |
# File 'lib/brainguy/basic_notifier.rb', line 15 def result nil end |