Module: FFaker::PhoneNumberDA
- Extended by:
- ModuleUtils, PhoneNumberDA
- Included in:
- PhoneNumberDA
- Defined in:
- lib/ffaker/phone_number_da.rb
Instance Method Summary collapse
- #country_code ⇒ Object
-
#home_work_phone_number ⇒ Object
Generates a general phone number xxxxxxxx.
- #international_home_work_phone_number ⇒ Object
- #international_mobile_phone_number ⇒ Object
- #international_phone_number ⇒ Object
-
#mobile_phone_number ⇒ Object
Generates a mobile phone number xxxxxxxxx.
-
#phone_number ⇒ Object
generates mobile or home/work number.
Methods included from ModuleUtils
const_missing, k, luhn_check, underscore, unique
Methods included from RandomUtils
#fetch_sample, #rand, #shuffle
Instance Method Details
#country_code ⇒ Object
27 28 29 |
# File 'lib/ffaker/phone_number_da.rb', line 27 def country_code '+45' end |
#home_work_phone_number ⇒ Object
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_number ⇒ Object
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_number ⇒ Object
31 32 33 |
# File 'lib/ffaker/phone_number_da.rb', line 31 def international_mobile_phone_number international_phone_number end |
#international_phone_number ⇒ Object
39 40 41 |
# File 'lib/ffaker/phone_number_da.rb', line 39 def international_phone_number "#{country_code} #{phone_number}" end |
#mobile_phone_number ⇒ Object
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 |