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.1.1 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.1.0 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.167 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.166 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.165 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.164 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.163 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.162 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.161 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.160 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.159 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.158 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.157 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.156 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.155 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.153 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.152 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.151 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.149 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.148 app/presenters/renalware/hd/station_presenter.rb