Class: Notifiers::Knotify

Inherits:
Base
  • Object
show all
Defined in:
lib/notifiers/knotify.rb

Constant Summary collapse

COMMAND =
"dcop knotify default notify eventname"

Instance Method Summary collapse

Methods inherited from Base

command?, darwin?, #image, inherited, #install_instructions, installed?, #message, #notify, platform?, subclasses, #title

Instance Method Details

#to_sObject



5
6
7
8
9
10
11
12
# File 'lib/notifiers/knotify.rb', line 5

def to_s
  command = "#{COMMAND}"
  command << " '#{@title}'" if @title
  command << " '#{@message}'" if @message
  command << " '' ''"
  command << " 12 1"
  command
end