Sha256: 3bb5fe75013aad2e71497f1977df34b36fa4515e82476fcd344dda9796522b69

Contents?: true

Size: 169 Bytes

Versions: 12

Compression:

Stored size: 169 Bytes

Contents

module Montrose
  class Frequency
    class Hourly < Frequency
      def include?(time)
        matches_interval?((time - @starts) / 1.hour)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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