Class: IMAP_Notifier::Alert
- Inherits:
-
Growl
- Object
- Growl
- IMAP_Notifier::Alert
- 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
- #alert(body, opts = {}) ⇒ Object
-
#initialize ⇒ Alert
constructor
A new instance of Alert.
Constructor Details
#initialize ⇒ Alert
7 8 9 |
# File 'lib/imap_notifier/growler.rb', line 7 def initialize super("localhost", ::IMAP_Notifier::VERSION) end |
Class Method Details
.remove ⇒ Object
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 |