Class: Almicube::Bundler::YesterdayBundler
- Defined in:
- lib/almicube/bundler/yesterday_bundler.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes included from Cog
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ YesterdayBundler
constructor
A new instance of YesterdayBundler.
- #keys ⇒ Object
Methods included from Cog
#active?, #after_aggregate, #before_aggregate
Constructor Details
#initialize(options = {}) ⇒ YesterdayBundler
Returns a new instance of YesterdayBundler.
4 5 6 7 |
# File 'lib/almicube/bundler/yesterday_bundler.rb', line 4 def initialize(={}) [:name] = :yesterday super() end |
Instance Method Details
#keys ⇒ Object
9 10 11 12 13 |
# File 'lib/almicube/bundler/yesterday_bundler.rb', line 9 def keys key = ranking.data_key key[:date] = ranking.date - 1.days [key] end |