module FFaker::PhoneNumberMX
def country_code
def country_code '+52' end
def home_work_phone_number
xx xxxx xxxx
Generates a general phone number
def home_work_phone_number FFaker.numerify('## #### ####') end
def international_home_work_phone_number
def international_home_work_phone_number FFaker.numerify("#{country_code} ## #### ####") end
def international_mobile_phone_number
def international_mobile_phone_number FFaker.numerify("#{country_code} 1 ## #### ####") end
def international_phone_number
def international_phone_number case rand(0..1) when 0 then international_mobile_phone_number when 1 then international_home_work_phone_number end end
def mobile_phone_number
044 xx xxxx xxxx
Generates a mobile phone number
def mobile_phone_number FFaker.numerify('044 ## #### ####') end
def phone_number
def phone_number case rand(0..1) when 0 then home_work_phone_number when 1 then mobile_phone_number end end
def toll_free_number
01 800 xxx xxxx
Generates a toll-free number
def toll_free_number FFaker.numerify('01 800 ### ####') end