Class: TomatoHarvest::Notifier

Inherits:
Object
  • Object
show all
Defined in:
lib/tomatoharvest/notifier.rb,
lib/tomatoharvest/notifier/notification_center.rb

Defined Under Namespace

Classes: NotificationCenter

Instance Method Summary collapse

Constructor Details

#initializeNotifier

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(message, opts = {})
  @notifier.notify(message, opts)
end