Sha256: ea385657482588c1df78fb89a5f9010a411dad6e7a5f1a4c000d03c232bdf599
Contents?: true
Size: 384 Bytes
Versions: 31
Compression:
Stored size: 384 Bytes
Contents
module Renalware class BloodPressure < NestedAttribute attribute :systolic, Integer attribute :diastolic, Integer validates_with Renalware::Patients::BloodPressureValidator def to_s return "" unless systolic.present? && diastolic.present? "#{systolic} / #{diastolic}" end def blank? systolic.blank? && diastolic.blank? end end end
Version data entries
31 entries across 31 versions & 1 rubygems