Sha256: 34348ea815c7b2afa2683e114597fb59b37244f43ebc322351298c0efe24169e

Contents?: true

Size: 507 Bytes

Versions: 5

Compression:

Stored size: 507 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

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