Class: Renalware::PD::ExitSiteInfectionDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Renalware::PD::ExitSiteInfectionDrop
- Defined in:
- app/drops/renalware/pd/exit_site_infection_drop.rb
Instance Method Summary collapse
- #date ⇒ Object
-
#initialize(esi) ⇒ ExitSiteInfectionDrop
constructor
A new instance of ExitSiteInfectionDrop.
- #organisms ⇒ Object
Constructor Details
#initialize(esi) ⇒ ExitSiteInfectionDrop
Returns a new instance of ExitSiteInfectionDrop.
12 13 14 |
# File 'app/drops/renalware/pd/exit_site_infection_drop.rb', line 12 def initialize(esi) @esi = esi end |
Instance Method Details
#date ⇒ Object
20 21 22 |
# File 'app/drops/renalware/pd/exit_site_infection_drop.rb', line 20 def date I18n.l(diagnosis_date) end |
#organisms ⇒ Object
16 17 18 |
# File 'app/drops/renalware/pd/exit_site_infection_drop.rb', line 16 def organisms esi.infection_organisms.map(&:to_s).join(", ") end |