Class: AtlasEngine::Gg::AddressValidation::Validators::FullAddress::Exclusions::City
- Inherits:
-
AddressValidation::Validators::FullAddress::Exclusions::ExclusionBase
- Object
- AddressValidation::Validators::FullAddress::Exclusions::ExclusionBase
- AtlasEngine::Gg::AddressValidation::Validators::FullAddress::Exclusions::City
- Extended by:
- T::Sig
- Defined in:
- app/countries/atlas_engine/gg/address_validation/validators/full_address/exclusions/city.rb
Class Method Summary collapse
Class Method Details
.apply?(candidate, address_comparison) ⇒ Boolean
21 22 23 24 |
# File 'app/countries/atlas_engine/gg/address_validation/validators/full_address/exclusions/city.rb', line 21 def apply?(candidate, address_comparison) # If the candidate city is already present in the parsings address_comparison.parsings.parsings.pluck(:city)&.include?(candidate.component(:city)&.value&.first) end |