Class: PostcodeValidation::UseCase::ValidateAddress::FormatValidators::CNPostcodeValidator

Inherits:
RegexValidator
  • Object
show all
Includes:
UseFormatCheckOnly
Defined in:
lib/postcode_validation/use_case/validate_address/format_validators/cn_postcode_validator.rb

Constant Summary collapse

REGEX =
/^[0-9]{6}(?:\s*,\s*[0-9]{6})*$|^[0-9]{4}(?:\s*,\s*[0-9]{6})*$/

Method Summary

Methods included from UseFormatCheckOnly

#format_check_only?

Methods inherited from RegexValidator

#valid?