class TomatoPaste::Pomodoro

Attributes

break_timer[R]
description[R]
state[R]
work_timer[R]

Public Class Methods

new(description) click to toggle source
# File lib/tomato_paste/pomodoro.rb, line 5
def initialize(description)
  @description = description
  @work_timer = Timer.new(1500) # 25 minutes
  @break_timer = Timer.new(300) # 5 minutes
  @state = :unstarted
end