Sha256: 4fd9c761bd5742730c47879144a91c77487949eb74895e8ad0b47eec064c83b3

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

module Renalware
  module Transplants
    class PatientPresenter < SimpleDelegator

      def initialize(patient)
        super(Transplants.cast_patient(patient.__getobj__))
      end

      def current_registration_status
        @current_registration_status ||= begin
          Transplants::Registration.for_patient(__getobj__).first&.current_status
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/transplants/patient_presenter.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/transplants/patient_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/transplants/patient_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/transplants/patient_presenter.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/transplants/patient_presenter.rb