Sha256: ca761939724c2008bf5be26e6b4f3778275df47f74cb9faff23fb8ab4e15f1fd
Contents?: true
Size: 404 Bytes
Versions: 86
Compression:
Stored size: 404 Bytes
Contents
# frozen_string_literal: true module Renalware module Patients class RespiratoryRateValidator < ActiveModel::EachValidator include NumericRangeValidations MIN_VALUE = 4 MAX_VALUE = 40 def validate_each(record, attribute, value) return if value.blank? validate_number_is_in_range(record, attribute, value, MIN_VALUE, MAX_VALUE) end end end end
Version data entries
86 entries across 86 versions & 1 rubygems