Sha256: ff16783ba1e345000f27113e61e1ba96183c6e2e00772b5b26a2b87e1163f721

Contents?: true

Size: 538 Bytes

Versions: 15

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/transplants"

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

15 entries across 15 versions & 1 rubygems

Version Path
renalware-core-2.0.15 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.14 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.13 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.12 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.11 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.9 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.8 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.7 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.5 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.4 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.3 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.2 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.1 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.rc13 app/presenters/renalware/transplants/wait_list_registration_presenter.rb