Sha256: 12de033599d14ad097a518738ec5786bc6d680b91b0cd6cab0054ea759efcd17
Contents?: true
Size: 497 Bytes
Versions: 5
Compression:
Stored size: 497 Bytes
Contents
require_dependency "renalware/transplants" module Renalware module Transplants class PatientPresenter < SimpleDelegator def initialize(patient) patient = patient.__getobj__ if patient.respond_to?(:__getobj__) super(Transplants.cast_patient(patient)) 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