module FFaker::PhoneNumberAU

def country_code

def country_code
  '+61'
end

def home_work_phone_number


(0x) xxxx xxxx
Generates a general phone number
def home_work_phone_number
  FFaker.numerify("(#{home_work_phone_prefix}) #### ####")
end

def home_work_phone_prefix

Other tags:
    See: FFaker::PhoneNumberAU::HOME_WORK_OPERATORS_PREFIX -
def home_work_phone_prefix
  fetch_sample(HOME_WORK_OPERATORS_PREFIX)
end

def international_home_work_phone_number

def international_home_work_phone_number
  FFaker.numerify("#{country_code} #{home_work_phone_prefix[1]} #### ####")
end

def international_mobile_phone_number

def international_mobile_phone_number
  FFaker.numerify("#{country_code} #{mobile_phone_prefix[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


04xx xxx xxx
Generates a mobile phone number
def mobile_phone_number
  FFaker.numerify("#{mobile_phone_prefix}## ### ###")
end

def mobile_phone_prefix

Other tags:
    See: FFaker::PhoneNumberAU::MOBILE_OPERATORS_PREFIX -
def mobile_phone_prefix
  fetch_sample(MOBILE_OPERATORS_PREFIX)
end

def phone_number

generates mobile or home/work number
def phone_number
  case rand(0..1)
  when 0 then home_work_phone_number
  when 1 then mobile_phone_number
  end
end

def phone_prefix

def phone_prefix
  fetch_sample(OPERATORS_PREFIX)
end