class Montrose::Rule::After

Public Class Methods

apply_options(opts) click to toggle source
# File lib/montrose/rule/after.rb, line 8
def self.apply_options(opts)
  opts.start_time
end
new(start_time) click to toggle source

Initializes rule

@param [Time] start_time - lower bound timestamp

# File lib/montrose/rule/after.rb, line 16
def initialize(start_time)
  @start_time = start_time
end

Public Instance Methods

continue?(_time) click to toggle source
# File lib/montrose/rule/after.rb, line 24
def continue?(_time)
  false
end
include?(time) click to toggle source
# File lib/montrose/rule/after.rb, line 20
def include?(time)
  time >= @start_time
end