Class: Renalware::BloodPressure
- Inherits:
-
NestedAttribute
- Object
- Document::Embedded
- NestedAttribute
- Renalware::BloodPressure
- Defined in:
- app/documents/renalware/blood_pressure.rb
Instance Method Summary collapse
Methods inherited from NestedAttribute
#nested_attribute?, #to_partial_path
Methods inherited from Document::Embedded
attribute, attributes_list, #method_missing, old_attribute, old_attributes
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Document::Embedded
Instance Method Details
#blank? ⇒ Boolean
17 18 19 |
# File 'app/documents/renalware/blood_pressure.rb', line 17 def blank? systolic.blank? && diastolic.blank? end |
#to_s ⇒ Object
12 13 14 15 |
# File 'app/documents/renalware/blood_pressure.rb', line 12 def to_s return "" unless systolic.present? && diastolic.present? "#{systolic} / #{diastolic}" end |