Sha256: 18415b043a74b8e320602622d13fef02435d96e555d1ffbbeedba2e90a8cda45

Contents?: true

Size: 277 Bytes

Versions: 5

Compression:

Stored size: 277 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/transplants/consent_presenter.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/transplants/consent_presenter.rb