Sha256: e0dcfefdbecabbb80c6cebb6f4b1875347291db1d2baba3fe982a0e635a329bf
Contents?: true
Size: 523 Bytes
Versions: 4
Compression:
Stored size: 523 Bytes
Contents
module TelephoneNumber class NumberFormat attr_reader :pattern, :leading_digits, :format, :national_prefix_formatting_rule, :intl_format def initialize(data_hash) @pattern = Regexp.new(data_hash[:pattern]) if data_hash[:pattern] @leading_digits = Regexp.new(data_hash[:leading_digits]) if data_hash[:leading_digits] @format = data_hash[:format] @intl_format = data_hash[:intl_format] @national_prefix_formatting_rule = data_hash[:national_prefix_formatting_rule] end end end
Version data entries
4 entries across 4 versions & 1 rubygems