module FFaker::PhoneNumberCH

def free_phone_number

def free_phone_number
  FFaker.numerify "#{COUNTRY_PREFIX.sample}#{FREE_PHONE_PREFIX.sample}#{PHONE_NUMBER.sample}"
end

def home_work_phone_number

def home_work_phone_number
  FFaker.numerify "#{COUNTRY_PREFIX.sample}#{AREA_PREFIX.sample}#{PHONE_NUMBER.sample}"
end

def mobile_phone_number

def mobile_phone_number
  FFaker.numerify "#{COUNTRY_PREFIX.sample}#{MOBILE_PREFIX.sample}#{PHONE_NUMBER.sample}"
end

def phone_number

def phone_number
  case rand(0..4)
  when 0 then home_work_phone_number
  when 1 then mobile_phone_number
  when 2 then free_phone_number
  when 3 then shared_cost_phone_number
  when 4 then premium_rate_phone_number
  end
end

def premium_rate_phone_number

def premium_rate_phone_number
  FFaker.numerify "#{COUNTRY_PREFIX.sample}#{PREMIUM_RATE_PREFIX.sample}#{PHONE_NUMBER.sample}"
end

def shared_cost_phone_number

def shared_cost_phone_number
  FFaker.numerify "#{COUNTRY_PREFIX.sample}#{SHARED_COST_PREFIX.sample}#{PHONE_NUMBER.sample}"
end