Class: Almicube::Bundler::YesterdayBundler

Inherits:
Base
  • Object
show all
Defined in:
lib/almicube/bundler/yesterday_bundler.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Attributes included from Cog

#ranking

Instance Method Summary collapse

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(options={})
  options[:name] = :yesterday
  super(options)
end

Instance Method Details

#keysObject



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