Class: Gera::RateSourceCBR
- Inherits:
-
RateSource
- Object
- ApplicationRecord
- ApplicationRecord
- RateSource
- Gera::RateSourceCBR
- Defined in:
- app/models/gera/rate_source_cbr.rb
Direct Known Subclasses
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_pairs ⇒ Object
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 |