Module: Notification
- Defined in:
- lib/networkwatcherd/notification.rb
Class Method Summary collapse
Class Method Details
.send(summary, new_fags, timeout = 50.5) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/networkwatcherd/notification.rb', line 4 def self.send (summary,new_fags,timeout=50.5) #text = new_fags.join(" and ") text = "" #new_fags.shift new_fags.each do |d| text+="#{d.inspect} " end notification = Libnotify.new do |notify| notify.summary = "Network Watcher" notify.body = text notify.timeout = timeout notify.urgency = :critical notify.append = false notify.transient = true end notification.show! end |