Class: AtlasEngine::AddressValidation::Validators::Predicates::NotExceedMaxLength
- Inherits:
-
Predicate
- Object
- Predicate
- AtlasEngine::AddressValidation::Validators::Predicates::NotExceedMaxLength
- Defined in:
- app/models/atlas_engine/address_validation/validators/predicates/not_exceed_max_length.rb
Constant Summary collapse
- MAX_COMPONENT_LENGTH =
255
Instance Attribute Summary
Attributes inherited from Predicate
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 |
# File 'app/models/atlas_engine/address_validation/validators/predicates/not_exceed_max_length.rb', line 11 def evaluate build_concern if address.send(@field).to_s.length > MAX_COMPONENT_LENGTH end |