Sha256: 5f09bfc4aa54e4b9cdec6e96f762237088d9a539c6e62466f6f9c1e58406572a

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

module Renalware
  module Transplants
    class WaitListRegistrationPresenter < SimpleDelegator
      delegate :uk_transplant_centre, to: :document
      delegate :status, :status_updated_on, to: :uk_transplant_centre, prefix: true, allow_nil: true

      def uk_transplant_centre_summary
        return if uk_transplant_centre_status.blank?
        "#{uk_transplant_centre_status} (#{I18n.l(uk_transplant_centre_status_updated_on)})"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/transplants/wait_list_registration_presenter.rb