Sha256: cbb7d9587c6fa5a8560cf2c8986b10b7d5e3ac2efdfd6d5571fe9370e40fe173

Contents?: true

Size: 445 Bytes

Versions: 12

Compression:

Stored size: 445 Bytes

Contents

module Montrose
  module Rule
    class After
      include Montrose::Rule

      def self.apply_options(opts)
        opts[:starts]
      end

      # Initializes rule
      #
      # @param [Time] start_time - lower bound timestamp
      #
      def initialize(start_time)
        @start_time = start_time
      end

      def include?(time)
        time >= @start_time
      end

      def continue?
        false
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
montrose-0.6.0 lib/montrose/rule/after.rb
montrose-0.5.0 lib/montrose/rule/after.rb
montrose-0.4.3 lib/montrose/rule/after.rb
montrose-0.4.2 lib/montrose/rule/after.rb
montrose-0.4.1 lib/montrose/rule/after.rb
montrose-0.4.0 lib/montrose/rule/after.rb
montrose-0.3.0 lib/montrose/rule/after.rb
montrose-0.2.2 lib/montrose/rule/after.rb
montrose-0.2.1 lib/montrose/rule/after.rb
montrose-0.2.0 lib/montrose/rule/after.rb
montrose-0.1.1 lib/montrose/rule/after.rb
montrose-0.1.0 lib/montrose/rule/after.rb