Class: AtlasEngine::AddressValidation::Validators::FullAddress::BuildingComparison

Inherits:
FieldComparisonBase
  • Object
show all
Extended by:
T::Sig
Defined in:
app/models/atlas_engine/address_validation/validators/full_address/building_comparison.rb

Instance Attribute Summary

Attributes inherited from FieldComparisonBase

#component

Instance Method Summary collapse

Methods inherited from FieldComparisonBase

#initialize, #match?

Constructor Details

This class inherits a constructor from AtlasEngine::AddressValidation::Validators::FullAddress::FieldComparisonBase

Instance Method Details

#relevant?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/models/atlas_engine/address_validation/validators/full_address/building_comparison.rb', line 12

def relevant?
  false
end

#sequence_comparisonObject



17
18
19
20
21
22
# File 'app/models/atlas_engine/address_validation/validators/full_address/building_comparison.rb', line 17

def sequence_comparison
  @building_comparison ||= NumberComparison.new(
    numbers: datastore.parsings.potential_building_numbers,
    candidate_ranges: building_ranges_from_candidate(candidate),
  )
end