Sha256: 876c99e7365b8f76e0b58eaae2caf68fb2d579f84affabf61b8e9ca5ea0e2a32
Contents?: true
Size: 355 Bytes
Versions: 9
Compression:
Stored size: 355 Bytes
Contents
module Yoti # # Process age attribute # # @deprecated 2.0.0 - replaced by Yoti::AgeVerification # class AgeProcessor AGE_PATTERN = 'age_(over|under):[1-9][0-9]?[0-9]?' # check if the key matches the format age_[over|under]:[1-999] def self.is_age_verification(age_field) /#{AGE_PATTERN}/.match?(age_field) end end end
Version data entries
9 entries across 9 versions & 1 rubygems