Class: Gera::RateSourceAuto

Inherits:
RateSource show all
Defined in:
app/models/gera/rate_source_auto.rb

Constant Summary

Constants inherited from RateSource

Gera::RateSource::RateNotFound

Instance Method Summary collapse

Methods inherited from RateSource

#actual_rates, available_pairs, #find_rate_by_currency_pair, #find_rate_by_currency_pair!, get!, #is_currency_supported?, supported_currencies, #to_s

Methods included from CurrencyPairGenerator

#generate_pairs_from_currencies

Instance Method Details

#build_currency_rate(pair) ⇒ Object



5
6
7
8
9
10
11
# File 'app/models/gera/rate_source_auto.rb', line 5

def build_currency_rate(pair)
  build_same(pair) ||
    build_from_source(manual, pair) ||
    build_from_source(cbr, pair) ||
    build_from_source(exmo, pair) ||
    build_cross(pair)
end