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

Version Path
yoti-1.9.0 lib/yoti/util/age_processor.rb
yoti-1.8.0 lib/yoti/util/age_processor.rb
yoti-1.7.1 lib/yoti/util/age_processor.rb
yoti-1.7.0 lib/yoti/util/age_processor.rb
yoti-1.6.4 lib/yoti/util/age_processor.rb
yoti-1.6.3 lib/yoti/util/age_processor.rb
yoti-1.6.2 lib/yoti/util/age_processor.rb
yoti-1.6.1 lib/yoti/util/age_processor.rb
yoti-1.6.0 lib/yoti/util/age_processor.rb