class Pomato::Tick

Public Instance Methods

execute() click to toggle source
# File lib/pomato/tick.rb, line 7
def execute
  alert = false
  jobs.each do |job|
    if (job[:start] + job[:time]) < now
      finish_job job
      alert = true
    end
  end
  play_alert if alert
end