class ThymeUbuntuNotification
Constants
- VERSION
Attributes
end_text[R]
start_text[R]
Public Class Methods
new(thyme, options={})
click to toggle source
# File lib/thyme_ubuntu_notification.rb, line 6 def initialize(thyme, options={}) @end_text = options.fetch(:end_text, 'Pomodoro Ended') @start_text = options.fetch(:start_text, 'Pomodoro Started') end
Public Instance Methods
after(seconds_left)
click to toggle source
# File lib/thyme_ubuntu_notification.rb, line 15 def after(seconds_left) system('notify-send', end_text) end
before()
click to toggle source
# File lib/thyme_ubuntu_notification.rb, line 11 def before system('notify-send', start_text) end