Class: Renalware::NestedAttribute
- Inherits:
-
Document::Embedded
- Object
- Document::Embedded
- Renalware::NestedAttribute
- Defined in:
- app/documents/renalware/nested_attribute.rb
Direct Known Subclasses
Age, BinaryMarker, BloodGroup, BloodPressure, DatedBooleanDiagnosis, DatedConfirmation, DatedInteger, DatedResult, DatedTest, InfectionStatus, LeftRightConfirmation, SmokingStatus, YearDatedConfirmation
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
#nested_attribute? ⇒ Boolean
7 8 9 |
# File 'app/documents/renalware/nested_attribute.rb', line 7 def nested_attribute? true end |
#to_partial_path ⇒ Object
11 12 13 14 |
# File 'app/documents/renalware/nested_attribute.rb', line 11 def to_partial_path class_name = self.class.name.demodulize.underscore "renalware/shared/documents/#{class_name}" end |