Method: ForgetTable::Decay#initialize

Defined in:
lib/forget_table/decay.rb

#initialize(last_updated, rate = DEFAULT_DECAY_RATE) ⇒ Decay

  • last_updated: timestamp of the last update

  • rate: the rate of the decay (optional)



9
10
11
12
# File 'lib/forget_table/decay.rb', line 9

def initialize(last_updated, rate = DEFAULT_DECAY_RATE)
  @last_updated = last_updated
  @rate = rate
end