Class: AtlasEngine::AddressValidation::Validators::Predicates::Zip::Present
- Inherits:
-
ZipBase
- Object
- Predicate
- ZipBase
- AtlasEngine::AddressValidation::Validators::Predicates::Zip::Present
show all
- Defined in:
- app/models/atlas_engine/address_validation/validators/predicates/zip/present.rb
Instance Attribute Summary
Attributes inherited from Predicate
#address, #cache, #field
Instance Method Summary
collapse
Methods inherited from Predicate
#initialize
Instance Method Details
#concerning? ⇒ Boolean
16
17
18
19
20
21
22
|
# File 'app/models/atlas_engine/address_validation/validators/predicates/zip/present.rb', line 16
def concerning?
return false unless super
return false if @address.zip.present?
return false if @cache.country.autofill_zip.present?
true
end
|
#evaluate ⇒ Object
11
12
13
|
# File 'app/models/atlas_engine/address_validation/validators/predicates/zip/present.rb', line 11
def evaluate
build_concern if concerning?
end
|