Class: Renalware::HD::StationPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Renalware::HD::StationPresenter
- Defined in:
- app/presenters/renalware/hd/station_presenter.rb
Instance Method Summary collapse
Instance Method Details
#css ⇒ Object
10 11 12 13 14 |
# File 'app/presenters/renalware/hd/station_presenter.rb', line 10 def css return if location.blank? "background-color: #{location&.colour}" end |
#name ⇒ Object
6 7 8 |
# File 'app/presenters/renalware/hd/station_presenter.rb', line 6 def name super.presence || "Unnamed Station" end |