class Triggerable::Conditions::After

Public Instance Methods

from() click to toggle source
# File lib/triggerable/conditions/schedule/after.rb, line 4
def from
  automation_time - @value - Triggerable::Engine.interval
end
to() click to toggle source
# File lib/triggerable/conditions/schedule/after.rb, line 8
def to
  automation_time - @value
end

Private Instance Methods

condition() click to toggle source
# File lib/triggerable/conditions/schedule/after.rb, line 14
def condition
  And.new [
    GreaterThan.new(@field, from),
    LessThanOrEqualTo.new(@field, to)
  ]
end