Sha256: 854353f013896a327e8948eb29229b6d32f3376ad64ecbf008c4a877dc2440e8
Contents?: true
Size: 847 Bytes
Versions: 6
Compression:
Stored size: 847 Bytes
Contents
# frozen_string_literal: true module FFaker # Based on information from http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia module PhoneNumberDA extend ModuleUtils extend self # Generates a general phone number # xxxxxxxx # def home_work_phone_number phone_number end # Generates a mobile phone number # xxxxxxxxx # def mobile_phone_number phone_number end # generates mobile or home/work number def phone_number FFaker.numerify('########') end def country_code '+45' end def international_mobile_phone_number international_phone_number end def international_home_work_phone_number international_phone_number end def international_phone_number "#{country_code} #{phone_number}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems