Class: TomatoHarvest::Notifier
- Inherits:
-
Object
- Object
- TomatoHarvest::Notifier
- Defined in:
- lib/tomatoharvest/notifier.rb,
lib/tomatoharvest/notifier/notification_center.rb
Defined Under Namespace
Classes: NotificationCenter
Instance Method Summary collapse
-
#initialize ⇒ Notifier
constructor
A new instance of Notifier.
- #notify(message, opts = {}) ⇒ Object
Constructor Details
#initialize ⇒ Notifier
Returns a new instance of Notifier.
6 7 8 |
# File 'lib/tomatoharvest/notifier.rb', line 6 def initialize @notifier = TomatoHarvest::Notifier::NotificationCenter.new end |
Instance Method Details
#notify(message, opts = {}) ⇒ Object
10 11 12 |
# File 'lib/tomatoharvest/notifier.rb', line 10 def notify(, opts = {}) @notifier.notify(, opts) end |