Sha256: a0e05637b3f3d9a438ea2cb96b74dc51f3cc967f787100ff0991a867810e22fc

Contents?: true

Size: 308 Bytes

Versions: 48

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/transplants"

module Renalware
  module Transplants
    class ConsentPresenter < SimpleDelegator
      # This method smells of :reek:NilCheck
      def to_s
        [I18n.l(consented_on), value&.text].compact.join(" ")
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
renalware-core-2.0.51 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.50 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.48 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.47 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.46 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.45 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.44 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.43 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.42 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.41 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.40 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.39 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.38 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.37 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.36 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.35 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.34 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.33 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.32 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.31 app/presenters/renalware/transplants/consent_presenter.rb