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



12
13
14
15
# File 'app/jobs/renalware/hd/generate_monthly_statistics_for_patient_job.rb', line 12

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