Sha256: 69400bb9fcd4c64442ec6c17908a80ec61631049e276a3a8d6524bb317eb5770
Contents?: true
Size: 318 Bytes
Versions: 1
Compression:
Stored size: 318 Bytes
Contents
module HistoricalWeeklyStats def history_range @history_range ||= ((weeks_of_history - 1).weeks.before(this_week.begin))..this_week.end end def history_weeks @history_weeks ||= history_range.step(7) end def new_history_vector Hash[history_weeks.zip([0] * weeks_of_history)] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | app/concerns/historical_weekly_stats.rb |