Class: AtlasEngine::AddressValidation::Validators::FullAddress::FieldComparisonBase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#componentObject (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

Returns:

  • (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

Returns:

  • (Boolean)


33
# File 'app/models/atlas_engine/address_validation/validators/full_address/field_comparison_base.rb', line 33

def relevant?; end

#sequence_comparisonObject



36
# File 'app/models/atlas_engine/address_validation/validators/full_address/field_comparison_base.rb', line 36

def sequence_comparison; end