Class: Pomo::Notifier::LibnotifyNotifier

Inherits:
Object
  • Object
show all
Defined in:
lib/pomo/notifier/libnotify_notifier.rb

Instance Method Summary collapse

Instance Method Details

#notify(message, opts = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/pomo/notifier/libnotify_notifier.rb', line 6

def notify(message, opts = {})
  title = 'Pomo'
  full_message = [opts[:header], opts[:message]].join(' ').lstrip

  Libnotify.show :body => full_message, :summary => title
end