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.127 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.126 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.125 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.124 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.123 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.121 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.120 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.119 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.118 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.117 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.116 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.115 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.113 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.112 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.111 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.110 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.109 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.108 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.106 app/presenters/renalware/hd/station_presenter.rb
renalware-core-2.0.105 app/presenters/renalware/hd/station_presenter.rb