module FFaker::PhoneNumber

def phone_number

def phone_number
  FFaker.numerify case rand(0..19)
                  when 0 then "#{area_code}-#{exchange_code}-#### x#####"
                  when 1 then "#{area_code}-#{exchange_code}-#### x####"
                  when 2 then "#{area_code}-#{exchange_code}-#### x###"
                  when 3..4 then "#{area_code}-#{exchange_code}-####"
                  when 5 then "#{area_code}.#{exchange_code}.#### x#####"
                  when 6 then "#{area_code}.#{exchange_code}.#### x####"
                  when 7 then "#{area_code}.#{exchange_code}.#### x###"
                  when 8..9 then "#{area_code}.#{exchange_code}.####"
                  when 10 then "(#{area_code})#{exchange_code}-#### x#####"
                  when 11 then "(#{area_code})#{exchange_code}-#### x####"
                  when 12 then "(#{area_code})#{exchange_code}-#### x###"
                  when 13..14 then "(#{area_code})#{exchange_code}-####"
                  when 15 then "1-#{area_code}-#{exchange_code}-#### x#####"
                  when 16 then "1-#{area_code}-#{exchange_code}-#### x####"
                  when 17 then "1-#{area_code}-#{exchange_code}-#### x###"
                  when 18..19 then "1-#{area_code}-#{exchange_code}-####"
                  end
end