Class: AtlasEngine::AddressValidation::FullAddressValidatorBase

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

Direct Known Subclasses

Es::Validators::FullAddress

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(address:, result:, message_format: MessageFormat::Instructional) ⇒ FullAddressValidatorBase

Returns a new instance of FullAddressValidatorBase.



21
22
23
24
25
# File 'app/models/atlas_engine/address_validation/full_address_validator_base.rb', line 21

def initialize(address:, result:, message_format: MessageFormat::Instructional)
  @address = address
  @result = result
  @message_format = message_format
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



15
16
17
# File 'app/models/atlas_engine/address_validation/full_address_validator_base.rb', line 15

def address
  @address
end

#message_formatObject (readonly)

Returns the value of attribute message_format.



18
19
20
# File 'app/models/atlas_engine/address_validation/full_address_validator_base.rb', line 18

def message_format
  @message_format
end

#resultObject (readonly)

Returns the value of attribute result.



12
13
14
# File 'app/models/atlas_engine/address_validation/full_address_validator_base.rb', line 12

def result
  @result
end

Instance Method Details

#validateObject



28
# File 'app/models/atlas_engine/address_validation/full_address_validator_base.rb', line 28

def validate; end