Sha256: 6b10cafea105058f09428afbdb360a44f12aad44827b5052a84fcbbf357c9364
Contents?: true
Size: 310 Bytes
Versions: 23
Compression:
Stored size: 310 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
23 entries across 23 versions & 1 rubygems