Class: AtlasEngine::AddressValidation::Validators::Predicates::Street::BuildingNumberInAddress1
- Inherits:
-
Predicate
- Object
- Predicate
- AtlasEngine::AddressValidation::Validators::Predicates::Street::BuildingNumberInAddress1
- Defined in:
- app/models/atlas_engine/address_validation/validators/predicates/street/building_number_in_address1.rb
Instance Attribute Summary
Attributes inherited from Predicate
#address, #cache, #field, #message_format
Instance Method Summary collapse
Methods inherited from Predicate
Constructor Details
This class inherits a constructor from AtlasEngine::AddressValidation::Validators::Predicates::Predicate
Instance Method Details
#evaluate ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/models/atlas_engine/address_validation/validators/predicates/street/building_number_in_address1.rb', line 11 def evaluate return unless @cache.country.building_number_required return if @cache.country.building_number_may_be_in_address2 return if contains_number?(T.must(@address.address1)) build_concern end |