Class: AtlasEngine::Pl::AddressValidation::Exclusions::RuralAddress

Inherits:
AddressValidation::Validators::FullAddress::Exclusions::ExclusionBase show all
Extended by:
T::Sig
Defined in:
app/countries/atlas_engine/pl/address_validation/exclusions/rural_address.rb

Class Method Summary collapse

Class Method Details

.apply?(candidate, address_comparison) ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/countries/atlas_engine/pl/address_validation/exclusions/rural_address.rb', line 18

def apply?(candidate, address_comparison)
  rural_address?(candidate) && poor_city_match?(address_comparison)
end