Class: ActiveCurrency::AddRates

Inherits:
Object
  • Object
show all
Includes:
AfterCommitEverywhere
Defined in:
lib/active_currency/add_rates.rb

Overview

Store the latest currency rates.

Class Method Summary collapse

Class Method Details

.call(deprecated_currencies = nil, currencies: nil, bank: nil) ⇒ Object



8
9
10
11
12
13
# File 'lib/active_currency/add_rates.rb', line 8

def self.call(deprecated_currencies = nil, currencies: nil, bank: nil)
  currencies ||= deprecated_currencies
  bank ||= ActiveCurrency.remote_bank

  new(currencies: currencies, bank: bank).send(:call)
end