class Bellbro::Timer
Attributes
limit[R]
started[R]
Public Class Methods
new(limit=nil)
click to toggle source
# File lib/bellbro/timer.rb, line 5 def initialize(limit=nil) @limit ||= 1.hour @started = Time.current end
Public Instance Methods
timed_out?()
click to toggle source
# File lib/bellbro/timer.rb, line 10 def timed_out? Time.current - started > limit end