Class: HeuristicCache::Coefficient
- Inherits:
-
Object
- Object
- HeuristicCache::Coefficient
- Defined in:
- lib/heuristic_cache/heuristic_cache.rb
Class Method Summary collapse
Class Method Details
.for(model, action) ⇒ Object
81 82 83 |
# File 'lib/heuristic_cache/heuristic_cache.rb', line 81 def self.for(model, action) @coefficients[model][action.to_s] end |
.init(yml) ⇒ Object
78 79 80 |
# File 'lib/heuristic_cache/heuristic_cache.rb', line 78 def self.init(yml) @coefficients = yml end |