class ReqSample::Time
Custom Time
methods
Public Instance Methods
within(center, limit)
click to toggle source
# File lib/reqsample/time.rb, line 4 def within(center, limit) seconds_range = limit * 60 * 60 (center - seconds_range) <= self && self <= (center + seconds_range) end