validators.rb
1# frozen_string_literal: true
2
3module ValidTelString
4 def self.===(value)
5 value.is_a?(String) && value =~ /\A\+1(\d{3})(\d{3})(\d+)\Z/
6 end
7end
8
9module PortProcessingStatus
10 def self.===(value)
11 value.is_a?(String) &&
12 ["complete", "submitted", "foc"].include?(value.downcase)
13 end
14end