class Yoti::AgeProcessor

Process age attribute

@deprecated will be removed in 2.0.0 - replaced by Yoti::AgeVerification

Constants

AGE_PATTERN

Public Class Methods

is_age_verification(age_field) click to toggle source

check if the key matches the format age_:[1-999]

# File lib/yoti/util/age_processor.rb, line 11
def self.is_age_verification(age_field)
  /#{AGE_PATTERN}/.match?(age_field)
end