Class: AtlasEngine::AddressValidation::Validators::FullAddress::CityComparison
- Inherits:
-
FieldComparisonBase
- Object
- FieldComparisonBase
- AtlasEngine::AddressValidation::Validators::FullAddress::CityComparison
show all
- Extended by:
- T::Sig
- Defined in:
- app/models/atlas_engine/address_validation/validators/full_address/city_comparison.rb
Instance Attribute Summary
#component
Instance Method Summary
collapse
#initialize, #match?
Instance Method Details
#relevant? ⇒ Boolean
12
13
14
|
# File 'app/models/atlas_engine/address_validation/validators/full_address/city_comparison.rb', line 12
def relevant?
true
end
|
#sequence_comparison ⇒ Object
17
18
19
20
21
22
23
24
25
|
# File 'app/models/atlas_engine/address_validation/validators/full_address/city_comparison.rb', line 17
def sequence_comparison
return @city_comparison if defined?(@city_comparison)
@city_comparison = best_comparison(
datastore.fetch_city_sequence,
T.must(candidate.component(:city)).sequences,
field_policy(:city),
)
end
|