Sha256: 07ce6b1c064bdd8e7bc95815defbabafd1cd7a7043a52e606815c4887e522582

Contents?: true

Size: 361 Bytes

Versions: 64

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module HD
    class StationPresenter < SimpleDelegator
      def name
        super.presence || "Unnamed Station"
      end

      def css
        return if location.blank?

        "background-color: #{location&.colour}"
      end

      def self.policy_class
        StationPolicy
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
renalware-core-2.0.147 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.146 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.145 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.144 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.143 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.142 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.141 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.140 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.139 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.138 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.137 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.136 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.135 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.134 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.133 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.132 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.131 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.130 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.129 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.128 app/presenters/renalware/hd/station_presenter.rb