hermannloose/escalator — comment on commit 4edba4433b7d0cf460825c54aca2f41d274c37c0
File: lib/escalation_job.rb line 7
By hermannloose:

More generic like what? :) (No really, I can't think of a more generic way right now, if you have one, I'll gladly listen.)

The difference between two `Time` objects is always in seconds. I chose minutes for the delays in `AlertingStep` and `EscalationStep` because that's the dimension of time you'll most likely think in when entering data. Rails' date & time helpers make it really easy to work with either (see below, line 13, the result of the calculation is always a `Time` again), so I don't think it's a problem—that is, if I stick to naming things `xyz_minutes`, `xyz_seconds` etc.