Class: HatebuWatcher::Observers::CounterObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/hatebu_watcher/observers/counter_observer.rb

Instance Method Summary collapse

Instance Method Details

#update(count) ⇒ Object



6
7
8
9
10
# File 'lib/hatebu_watcher/observers/counter_observer.rb', line 6

def update(count)
  growl = Growl.new('localhost', 'HatebuWatcher')
  growl.add_notification('changed')
  growl.notify('changed', 'HatebuWatcher', text(count))
end