Class: Renalware::HD::SessionDocument

Inherits:
Document::Embedded show all
Defined in:
app/documents/renalware/hd/session_document.rb

Defined Under Namespace

Classes: AvfAvgAssessment, Complications, Dialysis, HDF, Info, Observations

Constant Summary

Constants inherited from Document::Embedded

Document::Embedded::STRIPPABLE_TYPES

Instance Method Summary collapse

Methods inherited from Document::Embedded

attribute, attributes_list, #method_missing, old_attribute, old_attributes, #strip_leading_trailing_whitespace_from_numbers

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Document::Embedded

Instance Method Details

#error_messagesObject



132
133
134
135
136
137
138
139
140
141
# File 'app/documents/renalware/hd/session_document.rb', line 132

def error_messages
  [
    observations_before.errors.full_messages,
    observations_after.errors.full_messages,
    dialysis.errors.full_messages,
    info.errors.full_messages,
    complications.errors.full_messages,
    hdf.errors.full_messages
  ].flatten.compact
end