Class: Renalware::SummaryPart
- Inherits:
-
Object
- Object
- Renalware::SummaryPart
- Defined in:
- app/presenters/renalware/summary_part.rb
Overview
A base class for Summary presenters in other name-spaces. SummaryParts can be composed into reporting dashboards or summary pages. The Clinical Summary for instance comprises an array of various SummaryParts
Direct Known Subclasses
Admissions::ConsultSummaryPart, Admissions::SummaryPart, Events::SummaryPart, Letters::SummaryPart, Medications::SummaryPart, Patients::SummaryPart, Problems::SummaryPart
Constant Summary collapse
- DATE_FORMAT =
"%Y%m%d%H%M%S%L"
Instance Method Summary collapse
- #cache? ⇒ Boolean
-
#cache_key ⇒ Object
If the subclass defines a cache_key Rails will cache the partial.
- #render? ⇒ Boolean
Instance Method Details
#cache? ⇒ Boolean
23 24 25 |
# File 'app/presenters/renalware/summary_part.rb', line 23 def cache? cache_key.present? end |
#cache_key ⇒ Object
If the subclass defines a cache_key Rails will cache the partial
15 16 17 |
# File 'app/presenters/renalware/summary_part.rb', line 15 def cache_key nil end |
#render? ⇒ Boolean
19 20 21 |
# File 'app/presenters/renalware/summary_part.rb', line 19 def render? true end |