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.0.62 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.61 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.60 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.58 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.57 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.56 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.55 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.54 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.53 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.52 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.51 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.50 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.48 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.47 app/presenters/renalware/pd/peritonitis_episode_presenter.rb