Class: Workarea::Metrics::ProductByWeek

Inherits:
Object
  • Object
show all
Includes:
ByWeek, RevenueChange
Defined in:
app/models/workarea/metrics/product_by_week.rb

Class Method Summary collapse

Methods included from Scoring

#score, #weeks_ago

Methods included from ApplicationDocument

#releasable?

Methods included from Sidekiq::Callbacks

assert_valid_config!, async, disable, enable, inline, #run_callbacks

Methods included from Mongoid::Document

#embedded_children

Class Method Details

.append_last_week!Object



29
30
31
# File 'app/models/workarea/metrics/product_by_week.rb', line 29

def self.append_last_week!
  append!(ProductForLastWeek.all)
end