Class: AtlasEngine::AddressValidation::Validators::FullAddress::FieldComparisonBase
- Inherits:
-
Object
- Object
- AtlasEngine::AddressValidation::Validators::FullAddress::FieldComparisonBase
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- app/models/atlas_engine/address_validation/validators/full_address/field_comparison_base.rb
Direct Known Subclasses
BuildingComparison, CityComparison, ProvinceCodeComparison, StreetComparison, ZipComparison
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
Instance Method Summary collapse
-
#initialize(address:, candidate:, datastore:, component:) ⇒ FieldComparisonBase
constructor
A new instance of FieldComparisonBase.
- #match? ⇒ Boolean
- #relevant? ⇒ Boolean
- #sequence_comparison ⇒ Object
Constructor Details
#initialize(address:, candidate:, datastore:, component:) ⇒ FieldComparisonBase
Returns a new instance of FieldComparisonBase.
25 26 27 28 29 30 |
# File 'app/models/atlas_engine/address_validation/validators/full_address/field_comparison_base.rb', line 25 def initialize(address:, candidate:, datastore:, component:) @address = address @datastore = datastore @candidate = candidate @component = component end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
15 16 17 |
# File 'app/models/atlas_engine/address_validation/validators/full_address/field_comparison_base.rb', line 15 def component @component end |
Instance Method Details
#match? ⇒ Boolean
39 40 41 42 43 |
# File 'app/models/atlas_engine/address_validation/validators/full_address/field_comparison_base.rb', line 39 def match? return false if sequence_comparison.nil? T.must(sequence_comparison).match? end |
#relevant? ⇒ Boolean
33 |
# File 'app/models/atlas_engine/address_validation/validators/full_address/field_comparison_base.rb', line 33 def relevant?; end |
#sequence_comparison ⇒ Object
36 |
# File 'app/models/atlas_engine/address_validation/validators/full_address/field_comparison_base.rb', line 36 def sequence_comparison; end |