Class: Renalware::UKRDC::SumaryPreview

Inherits:
ActionMailer::Preview
  • Object
show all
Defined in:
app/mailers/renalware/previews/ukrdc_summary_preview.rb

Overview

Preview all emails at localhost:3000/rails/mailers

Instance Method Summary collapse

Instance Method Details

#daily_summaryObject



9
10
11
12
13
14
15
16
17
# File 'app/mailers/renalware/previews/ukrdc_summary_preview.rb', line 9

def daily_summary
  summary = ExportSummary.new(
    archive_folder: "/var/ukrdc/test",
    num_changed_patients: 10,
    milliseconds_taken: 123.0,
    results: { sent: 1, unsent: 2 }
  )
  UKRDC::SummaryMailer.export_summary(summary: summary)
end