Class: Tally::CalculatorRunnerJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/tally/calculator_runner_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(class_name, date_str) ⇒ Object



4
5
6
7
8
9
# File 'app/jobs/tally/calculator_runner_job.rb', line 4

def perform(class_name, date_str)
  date = Date.parse(date_str)

  runner = CalculatorRunner.new(class_name, date)
  runner.save
end