lib/phonelib/phone_analyzer.rb
# method checks if phone is valid against single provided country data
#
# ==== Attributes
#
# * +e164+ - e164 representation of phone for parsing
# * +data+ - country data for single country for parsing
method checks if phone is valid against single provided country data
Attributes

+e164+ - e164 representation of phone for parsing
+data+ - country data for single country for parsing
method checks if phone is valid against single provided country data Attributes + e164 + - e164 representation of phone for parsing + data + - country data for single country for parsing
def parse_single_country(e164, data)
      valid_match = phone_match_data?(e164, data)
      if valid_match
        national_and_data(data, valid_match)
      else
        possible_match = phone_match_data?(e164, data, true)
        possible_match && national_and_data(data, possible_match, true)
      end
    end
def parse_single_country ( e164 , data ) valid_match = phone_match_data? ( e164 , data ) if valid_match national_and_data ( data , valid_match ) else possible_match = phone_match_data? ( e164 , data , true ) possible_match && national_and_data ( data , possible_match , true ) end end
method checks if phone is valid against single provided country data
 Attributes
method checks if phone is valid against single provided country data Attributes
e164
<not_specific>
data
<not_specific>