Class: Danconia::Stores::InMemory
- Inherits:
-
Object
- Object
- Danconia::Stores::InMemory
- Defined in:
- lib/danconia/stores/in_memory.rb
Instance Method Summary collapse
Instance Method Details
#rates(**filters) ⇒ Object
8 9 10 11 12 |
# File 'lib/danconia/stores/in_memory.rb', line 8 def rates **filters @rates.select do |r| filters.all? { |k, v| r[k] == v } end end |
#save_rates(rates) ⇒ Object
4 5 6 |
# File 'lib/danconia/stores/in_memory.rb', line 4 def save_rates rates @rates = rates end |