Class: Volt::PhoneNumberValidator
- Inherits:
-
FormatValidator
- Object
- FormatValidator
- Volt::PhoneNumberValidator
- Defined in:
- lib/volt/models/validators/phone_number_validator.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ with: /^(\+?\d{1,2}[\.\-\ ]?\d{3}|\(\d{3}\)|\d{3})[\.\-\ ]?\d{3,4}[\.\-\ ]?\d{4}$/, message: 'must be a phone number with area or country code' }
Method Summary
Methods inherited from FormatValidator
#apply, #error_messages, #errors, #initialize, #valid?, validate, #with
Constructor Details
This class inherits a constructor from Volt::FormatValidator