Class: Renalware::Renal::PatientDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Renalware::Renal::PatientDrop
- Defined in:
- app/drops/renalware/renal/patient_drop.rb
Instance Method Summary collapse
-
#initialize(patient) ⇒ PatientDrop
constructor
A new instance of PatientDrop.
- #profile_prd_description ⇒ Object
Constructor Details
#initialize(patient) ⇒ PatientDrop
Returns a new instance of PatientDrop.
10 11 12 |
# File 'app/drops/renalware/renal/patient_drop.rb', line 10 def initialize(patient) @patient = Renal.cast_patient(patient) end |
Instance Method Details
#profile_prd_description ⇒ Object
14 15 16 |
# File 'app/drops/renalware/renal/patient_drop.rb', line 14 def profile_prd_description patient.profile&.prd_description&.to_s end |