Class: Montrose::Rule::After
- Inherits:
-
Object
- Object
- Montrose::Rule::After
- Includes:
- Montrose::Rule
- Defined in:
- lib/montrose/rule/after.rb
Class Method Summary collapse
Instance Method Summary collapse
- #continue?(_time) ⇒ Boolean
- #include?(time) ⇒ Boolean
-
#initialize(start_time) ⇒ After
constructor
Initializes rule.
Methods included from Montrose::Rule
Constructor Details
#initialize(start_time) ⇒ After
Initializes rule
16 17 18 |
# File 'lib/montrose/rule/after.rb', line 16 def initialize(start_time) @start_time = start_time end |
Class Method Details
.apply_options(opts) ⇒ Object
8 9 10 |
# File 'lib/montrose/rule/after.rb', line 8 def self.(opts) opts.start_time end |
Instance Method Details
#continue?(_time) ⇒ Boolean
24 25 26 |
# File 'lib/montrose/rule/after.rb', line 24 def continue?(_time) false end |
#include?(time) ⇒ Boolean
20 21 22 |
# File 'lib/montrose/rule/after.rb', line 20 def include?(time) time >= @start_time end |