Class: Triggerable::Conditions::After

Inherits:
ScheduleCondition show all
Defined in:
lib/triggerable/conditions/schedule/after.rb

Instance Method Summary collapse

Methods inherited from ScheduleCondition

#initialize, #scope, #true_for?

Methods inherited from FieldCondition

#desc, #initialize, #scope, #true_for?

Methods inherited from Condition

build, #scope, #true_for?

Constructor Details

This class inherits a constructor from Triggerable::Conditions::ScheduleCondition

Instance Method Details

#fromObject



4
5
6
# File 'lib/triggerable/conditions/schedule/after.rb', line 4

def from
  automation_time - @value - Triggerable::Engine.interval
end

#toObject



8
9
10
# File 'lib/triggerable/conditions/schedule/after.rb', line 8

def to
  automation_time - @value
end