Class: Gera::ExternalRate
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ApplicationRecord
- Gera::ExternalRate
- Includes:
- CurrencyPairSupport
- Defined in:
- app/models/gera/external_rate.rb
Instance Method Summary collapse
Methods included from CurrencyPairSupport
#currency_from, #currency_pair, #currency_pair=, #currency_to
Instance Method Details
#direction_rate ⇒ Object
23 24 25 |
# File 'app/models/gera/external_rate.rb', line 23 def direction_rate Universe.direction_rates_repository.find_direction_rate_by_exchange_rate_id id end |
#dump ⇒ Object
27 28 29 |
# File 'app/models/gera/external_rate.rb', line 27 def dump as_json(only: %i[id cur_from cur_to rate_value source_id created_at]) end |