Sha256: 7c4825c21be249dbcf0c5bbbafea6860f7b2dd7dd4917da72cd07d7c5af97dcc

Contents?: true

Size: 469 Bytes

Versions: 8

Compression:

Stored size: 469 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 unless uk_transplant_centre_status.present?
        "#{uk_transplant_centre_status} (#{I18n.l(uk_transplant_centre_status_updated_on)})"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/transplants/wait_list_registration_presenter.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/transplants/wait_list_registration_presenter.rb