Class: Renalware::Hospitals::Centre

Inherits:
ApplicationRecord show all
Defined in:
app/models/renalware/hospitals/centre.rb

Instance Method Summary collapse

Instance Method Details

#hd_sitesObject



18
19
20
# File 'app/models/renalware/hospitals/centre.rb', line 18

def hd_sites
  units.hd_sites.ordered
end

#to_sObject



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