Class: AtlasEngine::AddressValidation::Validators::Predicates::NoEmojis

Inherits:
Predicate
  • Object
show all
Defined in:
app/models/atlas_engine/address_validation/validators/predicates/no_emojis.rb

Instance Attribute Summary

Attributes inherited from Predicate

#address, #cache, #field, #message_format

Instance Method Summary collapse

Methods inherited from Predicate

#initialize

Constructor Details

This class inherits a constructor from AtlasEngine::AddressValidation::Validators::Predicates::Predicate

Instance Method Details

#evaluateObject



10
11
12
# File 'app/models/atlas_engine/address_validation/validators/predicates/no_emojis.rb', line 10

def evaluate
  build_concern if contains_blocked_codepoints?(address.send(@field))
end