Class: Gera::CreateHistoryIntervalsWorker
- Inherits:
-
Object
- Object
- Gera::CreateHistoryIntervalsWorker
- Includes:
- AutoLogger, Sidekiq::Worker
- Defined in:
- app/workers/gera/create_history_intervals_worker.rb
Constant Summary collapse
- MAXIMAL_DATE =
30.minutes
- MINIMAL_DATE =
Time.parse('13-07-2018 18:00')
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
11 12 13 14 |
# File 'app/workers/gera/create_history_intervals_worker.rb', line 11 def perform save_direction_rate_history_intervals if DirectionRateHistoryInterval.table_exists? save_currency_rate_history_intervals if CurrencyRateHistoryInterval.table_exists? end |