Class: Renalware::DatedBooleanDiagnosis
- Inherits:
-
NestedAttribute
- Object
- Document::Embedded
- NestedAttribute
- Renalware::DatedBooleanDiagnosis
- Defined in:
- app/documents/renalware/dated_boolean_diagnosis.rb
Constant Summary
Constants inherited from Document::Embedded
Document::Embedded::STRIPPABLE_TYPES
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, #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
#to_s ⇒ Object
10 11 12 13 14 15 |
# File 'app/documents/renalware/dated_boolean_diagnosis.rb', line 10 def to_s return "" if diagnosis.to_s.blank? datestamp = diagnosed_on.present? ? "(#{I18n.l(diagnosed_on)})" : nil [(diagnosis ? "Yes" : "No"), datestamp].compact.join(" ") end |