Class: Triggerable::Conditions::ScheduleCondition
- Inherits:
-
FieldCondition
- Object
- Condition
- FieldCondition
- Triggerable::Conditions::ScheduleCondition
- Defined in:
- lib/triggerable/conditions/schedule/schedule_condition.rb
Instance Method Summary collapse
-
#initialize(field, value) ⇒ ScheduleCondition
constructor
A new instance of ScheduleCondition.
- #scope(table) ⇒ Object
- #true_for?(object) ⇒ Boolean
Methods inherited from FieldCondition
Methods inherited from Condition
Constructor Details
#initialize(field, value) ⇒ ScheduleCondition
Returns a new instance of ScheduleCondition.
4 5 6 7 |
# File 'lib/triggerable/conditions/schedule/schedule_condition.rb', line 4 def initialize field, value @value = value.values.first if value.is_a?(Hash) super end |
Instance Method Details
#scope(table) ⇒ Object
13 14 15 |
# File 'lib/triggerable/conditions/schedule/schedule_condition.rb', line 13 def scope table condition.scope(table) end |
#true_for?(object) ⇒ Boolean
9 10 11 |
# File 'lib/triggerable/conditions/schedule/schedule_condition.rb', line 9 def true_for? object condition.true_for?(object) end |