class CampfireChat::Notifier::Growl

Public Instance Methods

growl() click to toggle source
# File lib/campfire_chat/notifier/growl.rb, line 11
def growl
  ::Growl
end
push(notification) click to toggle source
# File lib/campfire_chat/notifier/growl.rb, line 7
def push(notification)
  notify_ok notification
end

Private Instance Methods

image_path(image) click to toggle source
# File lib/campfire_chat/notifier/growl.rb, line 21
def image_path(image)
  File.join(File.expand_path(File.dirname(__FILE__)), '../', 'images', "#{image}.png")
end
notify_ok(notification) click to toggle source
# File lib/campfire_chat/notifier/growl.rb, line 17
def notify_ok(notification)
  growl.notify notification.body, :title => notification.title, :sticky => notification.important?, :image => image_path('sr')
end