Class: ActiveRecord::Turntable::Algorithm::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Turntable::Algorithm::Base
show all
- Defined in:
- lib/active_record/turntable/algorithm/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(config) ⇒ Base
3
4
5
|
# File 'lib/active_record/turntable/algorithm/base.rb', line 3
def initialize(config)
@config = config
end
|
Instance Method Details
#calculate(key) ⇒ Object
7
8
9
|
# File 'lib/active_record/turntable/algorithm/base.rb', line 7
def calculate(key)
raise NotImplementedError, "not implemented"
end
|