Class: Renalware::HD::SessionDocument

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

Defined Under Namespace

Classes: 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

rubocop:disable Metrics/AbcSize



118
119
120
121
122
123
124
125
126
127
# File 'app/documents/renalware/hd/session_document.rb', line 118

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