Class: Renalware::HD::PatientStatistics

Inherits:
ApplicationRecord show all
Includes:
PatientScope
Defined in:
app/models/renalware/hd/patient_statistics.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



40
41
42
43
44
45
46
# File 'app/models/renalware/hd/patient_statistics.rb', line 40

def to_s
  return "Last #{session_count} sessions" if rolling?

  if year > 0 && month > 0
    Date.new(year, month).strftime("%b %Y")
  end
end