Module: Faker::PhoneNumberDA
- Extended by:
- ModuleUtils, PhoneNumberDA
- Included in:
- PhoneNumberDA
- Defined in:
- lib/ffakerer/phone_number_da.rb
Overview
Author: wiseleyb<[email protected]> Based on information from en.wikipedia.org/wiki/Telephone_numbers_in_Australia
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
Instance Method Details
#country_code ⇒ Object
29 30 31 |
# File 'lib/ffakerer/phone_number_da.rb', line 29 def country_code "+45" end |
#home_work_phone_number ⇒ Object
Generates a general phone number
xxxxxxxx
13 14 15 |
# File 'lib/ffakerer/phone_number_da.rb', line 13 def home_work_phone_number phone_number end |
#international_home_work_phone_number ⇒ Object
37 38 39 |
# File 'lib/ffakerer/phone_number_da.rb', line 37 def international_home_work_phone_number international_phone_number end |
#international_mobile_phone_number ⇒ Object
33 34 35 |
# File 'lib/ffakerer/phone_number_da.rb', line 33 def international_mobile_phone_number international_phone_number end |
#international_phone_number ⇒ Object
41 42 43 |
# File 'lib/ffakerer/phone_number_da.rb', line 41 def international_phone_number Faker.numerify("#{country_code} #{phone_number}") end |
#mobile_phone_number ⇒ Object
Generates a mobile phone number xxxxxxxxx
20 21 22 |
# File 'lib/ffakerer/phone_number_da.rb', line 20 def mobile_phone_number phone_number end |