Sha256: 9107e99b9417fbcd973d3045ec74a83fad77ea9daa369036092dea009e941d85

Contents?: true

Size: 342 Bytes

Versions: 114

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module PD
    class PeritonitisEpisodePresenter < DumbDelegator
      def episode_types_summary
        return "Unknown" unless episode_types.any?

        episode_types.map do |type|
          type.peritonitis_episode_type_description.term
        end.join(", ")
      end
    end
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.1.0 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.167 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.166 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.165 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.164 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.163 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.162 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.161 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.160 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.159 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.158 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.157 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.156 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.155 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.153 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.152 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.151 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.149 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.148 app/presenters/renalware/pd/peritonitis_episode_presenter.rb