module FFaker::PhoneNumberSG

def country_code

def country_code
  '+65'
end

def fixed_line_number


6xxx xxxx
Generates a fixed line phone number
def fixed_line_number
  FFaker.numerify('6### ####')
end

def international_toll_free_number


800 xxx xxxx
Generates an international toll-free number
def international_toll_free_number
  FFaker.numerify('800 ### ####')
end

def mobile_number


8xxx xxxx
Generates a fixed mobile phone number
def mobile_number
  FFaker.numerify('8### ####')
end

def mobile_or_pager_number


9xxx xxxx
Generates a fixed mobile phone number or pager service number
def mobile_or_pager_number
  FFaker.numerify('9### ####')
end

def phone_number

generates mobile or home/work number
def phone_number
  case rand(0..2)
  when 0 then fixed_line_number
  when 1 then mobile_number
  when 2 then mobile_or_pager_number
  end
end

def premium_service_number


(1900) xxx xxxx
Generates a premium service number
def premium_service_number
  FFaker.numerify('1900 ### ####')
end

def toll_free_number


1800 xxx xxxx
Generates an toll-free number
def toll_free_number
  FFaker.numerify('1800 ### ####')
end

def voip_number


3xxx xxxx
Generates a voip phone number
def voip_number
  FFaker.numerify('3### ####')
end