Class: Renalware::Patients::BloodPressureValidator

Inherits:
ActiveModel::Validator
  • Object
show all
Includes:
NumericRangeValidations
Defined in:
app/validators/renalware/patients/blood_pressure_validator.rb

Constant Summary collapse

MIN_VALUE =
20
MAX_VALUE =
300

Instance Method Summary collapse

Methods included from NumericRangeValidations

#validate_number_is_in_range

Instance Method Details

#validate(bp) ⇒ Object



10
11
12
# File 'app/validators/renalware/patients/blood_pressure_validator.rb', line 10

def validate(bp)
  apply_validations(bp) if bp.present?
end