Class: IMAP_Notifier::Alert

Inherits:
Growl
  • Object
show all
Defined in:
lib/imap_notifier/growler.rb,
lib/imap_notifier/notifier.rb,
lib/imap_notifier/libnotify.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAlert



7
8
9
# File 'lib/imap_notifier/growler.rb', line 7

def initialize
  super("localhost", ::IMAP_Notifier::VERSION)
end

Class Method Details

.removeObject



4
5
# File 'lib/imap_notifier/growler.rb', line 4

def self.remove
end

Instance Method Details

#alert(body, opts = {}) ⇒ Object



11
12
13
14
15
# File 'lib/imap_notifier/growler.rb', line 11

def alert(body, opts={})
  opts[:title] ||= self.class.name
  add_notification ::IMAP_Notifier::VERSION
  notify ::IMAP_Notifier::VERSION, opts[:title], body
end