Module: FFaker::PhoneNumberDA

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

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#country_codeObject



27
28
29
# File 'lib/ffaker/phone_number_da.rb', line 27

def country_code
  '+45'
end

#home_work_phone_numberObject

Generates a general phone number

xxxxxxxx


11
12
13
# File 'lib/ffaker/phone_number_da.rb', line 11

def home_work_phone_number
  phone_number
end

#international_home_work_phone_numberObject



35
36
37
# File 'lib/ffaker/phone_number_da.rb', line 35

def international_home_work_phone_number
  international_phone_number
end

#international_mobile_phone_numberObject



31
32
33
# File 'lib/ffaker/phone_number_da.rb', line 31

def international_mobile_phone_number
  international_phone_number
end

#international_phone_numberObject



39
40
41
# File 'lib/ffaker/phone_number_da.rb', line 39

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

#mobile_phone_numberObject

Generates a mobile phone number xxxxxxxxx



18
19
20
# File 'lib/ffaker/phone_number_da.rb', line 18

def mobile_phone_number
  phone_number
end

#phone_numberObject

generates mobile or home/work number



23
24
25
# File 'lib/ffaker/phone_number_da.rb', line 23

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