module FFaker::PhoneNumberBR
def country_code
def country_code COUNTRY_PREFIX end
def home_work_phone_number
def home_work_phone_number number HOME_WORK_PHONE_PREFIX end
def international_home_work_phone_number
def international_home_work_phone_number number HOME_WORK_PHONE_PREFIX, COUNTRY_PREFIX end
def international_mobile_phone_number
def international_mobile_phone_number number MOBILE_PHONE_PREFIX, COUNTRY_PREFIX end
def international_phone_number
pick a random phone number with the international prefix code
def international_phone_number rand(0..1).zero? ? international_mobile_phone_number : international_home_work_phone_number end
def mobile_phone_number
def mobile_phone_number number MOBILE_PHONE_PREFIX end
def number(prefixes, country_prefix = '')
def number(prefixes, country_prefix = '') space = random_space p = [ country_prefix, space, fetch_sample(AREA_CODE), space, fetch_sample(prefixes), fetch_sample(PHONE_NUMBER) ].join('').strip FFaker.numerify p end
def phone_number
generate a random phone number
def phone_number rand(0..1).zero? ? home_work_phone_number : mobile_phone_number end
def random_space
def random_space rand(0..1) == 1 ? ' ' : '' end