Sha256: 05a7901bf364d214a390ce85486ab9df7fda0fb154a6c67746bcff1a03475c27
Contents?: true
Size: 507 Bytes
Versions: 8
Compression:
Stored size: 507 Bytes
Contents
# A Liquid 'Drop' - a safe, read-only presenter compatible with Liquid templates. # We use Liquid templates for one-off hospital-specific views or print-outs. require_dependency "renalware/renal" module Renalware module Renal class PatientDrop < Liquid::Drop def initialize(patient) @patient = Renal.cast_patient(patient) end def profile_prd_description patient.profile&.prd_description&.to_s end private attr_reader :patient end end end
Version data entries
8 entries across 8 versions & 1 rubygems