Class: Renalware::Hospitals::Centre
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::Hospitals::Centre
- Defined in:
- app/models/renalware/hospitals/centre.rb
Instance Method Summary collapse
Instance Method Details
#hd_sites ⇒ Object
18 19 20 |
# File 'app/models/renalware/hospitals/centre.rb', line 18 def hd_sites units.hd_sites.ordered end |
#to_s ⇒ Object
22 23 24 25 26 27 28 |
# File 'app/models/renalware/hospitals/centre.rb', line 22 def to_s if location.present? "#{name} (#{location})" else name end end |