Sha256: de7496f0a14c804f8a2aeda21d442450fb14c35135c8c26c320a8f8d1f1cb6c6

Contents?: true

Size: 364 Bytes

Versions: 35

Compression:

Stored size: 364 Bytes

Contents

module Renalware
  module Patients
    class PulseValidator < ActiveModel::EachValidator
      include NumericRangeValidations
      MIN_VALUE = 20
      MAX_VALUE = 200

      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

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc7 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.rc6 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.rc5 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.rc4 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.rc3 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.rc1 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta12 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta11 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta10 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta9 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta8 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta7 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta6 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta5 app/validators/renalware/patients/pulse_validator.rb
renalware-core-2.0.0.pre.beta4 app/validators/renalware/patients/pulse_validator.rb