Class: Renalware::Letters::PartClassFilter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/renalware/letters/part_class_filter.rb

Overview

Given a hash of letter part classes (i.e. the class names for each Part that should be included in the letter, where each Part is responsible for rendering a part of the letter) and other options, this class filters out certain parts based on conditions, for example if a site does not want pathology, the recent_pathology_results key is removed from the hash.

Instance Method Summary collapse

Instance Method Details

#to_hObject



16
17
18
# File 'app/presenters/renalware/letters/part_class_filter.rb', line 16

def to_h
  filtered_part_classes
end