Sha256: 3deccb6cc76f181b06888c64433278d5075451d37c72997cc44ea1ed4cb38b07
Contents?: true
Size: 589 Bytes
Versions: 29
Compression:
Stored size: 589 Bytes
Contents
module TelephoneNumber class NumberFormat attr_reader :pattern, :leading_digits, :format, :national_prefix_formatting_rule, :intl_format def initialize(data_hash, country_prefix_formatting_rule) @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] || country_prefix_formatting_rule end end end
Version data entries
29 entries across 29 versions & 1 rubygems