Class: Renalware::HD::Session::Closed::SessionDocument

Inherits:
Renalware::HD::SessionDocument show all
Defined in:
app/models/renalware/hd/session/closed.rb

Defined Under Namespace

Classes: AvfAvgAssessment, Complications, Dialysis, Info, Observations

Constant Summary

Constants inherited from Document::Embedded

Document::Embedded::STRIPPABLE_TYPES

Instance Method Summary collapse

Methods inherited from Renalware::HD::SessionDocument

#error_messages

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

#hd_type_is_hdf?Boolean

Returns:

  • (Boolean)


74
75
76
# File 'app/models/renalware/hd/session/closed.rb', line 74

def hd_type_is_hdf?
  %w(hdf_pre hdf_post).include?(info.hd_type.to_s)
end