Sha256: 93636ba59223c360416d1f82d7a5bfb628b5ed30e4063f02dc90029bed7d4b2f

Contents?: true

Size: 341 Bytes

Versions: 44

Compression:

Stored size: 341 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

44 entries across 44 versions & 1 rubygems

Version Path
renalware-core-2.0.25 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.24 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.23 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.22 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.21 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.20 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.18 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.17 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.16 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.15 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.14 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.13 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.12 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.11 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.9 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.8 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.7 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.5 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.4 app/presenters/renalware/pd/peritonitis_episode_presenter.rb
renalware-core-2.0.3 app/presenters/renalware/pd/peritonitis_episode_presenter.rb