Class: BudgetRefresherWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/budget_refresher_worker.rb

Overview

Sidekiq worker: budget refresher.

Instance Method Summary collapse

Instance Method Details

#perform(year, month) ⇒ Object

Runs the job.

Parameters:

  • year (Object)

    the year to evaluate

  • month (Object)

    the month to evaluate

Returns:

  • (Object)

    the result



14
15
16
# File 'app/workers/budget_refresher_worker.rb', line 14

def perform(year, month)
  Analytic::BudgetFact.refresh_data_for_month(year.to_i, month.to_i)
end