Class: Renalware::HD::GenerateMonthlyStatisticsForPatientJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/renalware/hd/generate_monthly_statistics_for_patient_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(patient:, month:, year:) ⇒ Object

:reek:UtilityFunction



9
10
11
12
# File 'app/jobs/renalware/hd/generate_monthly_statistics_for_patient_job.rb', line 9

def perform(patient:, month:, year:)
  period = MonthPeriod.new(month: month, year: year)
  GenerateMonthlyStatisticsForPatient.new(patient: patient, period: period).call
end