Sha256: 1cd6485a77a398674d847ebb818a77865ba4104933a520380b116610203269c5

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

require "obst/group_by_days"

module Obst
  class DailyIncrement
    include Enumerable

    def initialize(**opts)
      @group_by_day = GroupByDays.new(**opts)
    end

    def each(&block)
      return self unless block

      @group_by_day.each do |pack_log_record|
        block.call(pack_log_record.increment)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
obst-0.1.10 lib/obst/daily_increment.rb
obst-0.1.9 lib/obst/daily_increment.rb
obst-0.1.8 lib/obst/daily_increment.rb
obst-0.1.7 lib/obst/daily_increment.rb
obst-0.1.6 lib/obst/daily_increment.rb
obst-0.1.5 lib/obst/daily_increment.rb