Class: AtlasEngine::AddressValidation::Validators::Predicates::StreetName::Present

Inherits:
Predicate
  • Object
show all
Defined in:
app/models/atlas_engine/address_validation/validators/predicates/street_name/present.rb

Instance Attribute Summary

Attributes inherited from Predicate

#address, #cache, #field, #message_format

Instance Method Summary collapse

Methods inherited from Predicate

#initialize

Constructor Details

This class inherits a constructor from AtlasEngine::AddressValidation::Validators::Predicates::Predicate

Instance Method Details

#evaluateObject



11
12
13
# File 'app/models/atlas_engine/address_validation/validators/predicates/street_name/present.rb', line 11

def evaluate
  build_concern if @address.street_name.blank? && @cache.country.street_name_required?
end