Module: FFaker::PhoneNumberDA

Extended by:
ModuleUtils, PhoneNumberDA
Included in:
PhoneNumberDA
Defined in:
lib/ffaker/phone_number_da.rb

Overview

Author: wiseleyb<wiseleyb@gmail.com> Based on information from en.wikipedia.org/wiki/Telephone_numbers_in_Australia

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#country_codeObject



29
30
31
# File 'lib/ffaker/phone_number_da.rb', line 29

def country_code
  '+45'
end

#home_work_phone_numberObject

Generates a general phone number

xxxxxxxx


13
14
15
# File 'lib/ffaker/phone_number_da.rb', line 13

def home_work_phone_number
  phone_number
end

#international_home_work_phone_numberObject



37
38
39
# File 'lib/ffaker/phone_number_da.rb', line 37

def international_home_work_phone_number
  international_phone_number
end

#international_mobile_phone_numberObject



33
34
35
# File 'lib/ffaker/phone_number_da.rb', line 33

def international_mobile_phone_number
  international_phone_number
end

#international_phone_numberObject



41
42
43
# File 'lib/ffaker/phone_number_da.rb', line 41

def international_phone_number
  "#{country_code} #{phone_number}"
end

#mobile_phone_numberObject

Generates a mobile phone number xxxxxxxxx



20
21
22
# File 'lib/ffaker/phone_number_da.rb', line 20

def mobile_phone_number
  phone_number
end

#phone_numberObject

generates mobile or home/work number



25
26
27
# File 'lib/ffaker/phone_number_da.rb', line 25

def phone_number
  FFaker.numerify('########')
end