Class: Renalware::SummaryPart

Inherits:
Object
  • Object
show all
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

Constant Summary collapse

DATE_FORMAT =
"%Y%m%d%H%M%S%L"

Instance Method Summary collapse

Instance Method Details

#cache?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/presenters/renalware/summary_part.rb', line 23

def cache?
  cache_key.present?
end

#cache_keyObject

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

Returns:

  • (Boolean)


19
20
21
# File 'app/presenters/renalware/summary_part.rb', line 19

def render?
  true
end