Class: Yoti::AgeProcessor Deprecated

Inherits:
Object
  • Object
show all
Defined in:
lib/yoti/util/age_processor.rb

Overview

Deprecated.

2.0.0 - replaced by Yoti::AgeVerification

Process age attribute

Constant Summary collapse

AGE_PATTERN =
'age_(over|under):[1-9][0-9]?[0-9]?'

Class Method Summary collapse

Class Method Details

.is_age_verification(age_field) ⇒ Object

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



11
12
13
# File 'lib/yoti/util/age_processor.rb', line 11

def self.is_age_verification(age_field)
  /#{AGE_PATTERN}/.match?(age_field)
end