class Triggerable::Conditions::Before
Public Instance Methods
from()
click to toggle source
# File lib/triggerable/conditions/schedule/before.rb, line 4 def from automation_time + @value end
to()
click to toggle source
# File lib/triggerable/conditions/schedule/before.rb, line 8 def to automation_time + @value + Triggerable::Engine.interval end
Private Instance Methods
condition()
click to toggle source
# File lib/triggerable/conditions/schedule/before.rb, line 14 def condition And.new [ GreaterThanOrEqualTo.new(@field, from), LessThan.new(@field, to) ] end