Class: Renalware::HD::PatientStatistics
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::HD::PatientStatistics
- Includes:
- PatientScope
- Defined in:
- app/models/renalware/hd/patient_statistics.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
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 |