Class: Money::RatesStore::Memory

Inherits:
Object
  • Object
show all
Defined in:
lib/money/bank/openexchangerates_bank.rb

Overview

Memory class

Instance Method Summary collapse

Instance Method Details

#reset!(rt = {}) ⇒ Object

Add method to reset the build in memory store

Parameters:

  • rt (Hash) (defaults to: {})

    Optional initial exchange rate data.

Returns:

  • (Object)

    store.



17
18
19
# File 'lib/money/bank/openexchangerates_bank.rb', line 17

def reset!(rt = {})
  transaction { @index = rt }
end