Class: Gera::RateSourceCBR

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

Direct Known Subclasses

RateSourceCBRAvg

Constant Summary

Constants inherited from RateSource

Gera::RateSource::RateNotFound

Class Method Summary collapse

Methods inherited from RateSource

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

Methods included from CurrencyPairGenerator

#generate_pairs_from_currencies

Class Method Details

.available_pairsObject



9
10
11
# File 'app/models/gera/rate_source_cbr.rb', line 9

def self.available_pairs
  ['KZT/RUB', 'USD/RUB', 'EUR/RUB', 'UAH/RUB'].map { |cp| Gera::CurrencyPair.new cp }.freeze
end

.supported_currenciesObject



5
6
7
# File 'app/models/gera/rate_source_cbr.rb', line 5

def self.supported_currencies
  %i[RUB KZT USD EUR UAH].map { |m| Money::Currency.find! m }
end