Class: Renalware::UKRDC::MeasurementUnit
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::UKRDC::MeasurementUnit
- Defined in:
- app/models/renalware/ukrdc/measurement_unit.rb
Overview
Represents a valid UKRDC pathology test result measurement unit e.g. âmgâ. See github.com/renalreg/ukrdc/blob/master/Schema/Types/CF_RR23.xsd
Instance Method Summary collapse
-
#title ⇒ Object
A friendly string containing the name folllowed by the description (if present) in parentheses e.g.
Instance Method Details
#title ⇒ Object
A friendly string containing the name folllowed by the description (if present) in parentheses e.g. âl (litres)â
14 15 16 17 18 |
# File 'app/models/renalware/ukrdc/measurement_unit.rb', line 14 def title return name if description.blank? || name == description "#{name} (#{description})" end |