Sha256: 15d31bb823b6e9cbe95627d4fa5f3da44440b1de4630701dc51d2e0d00fabf5a

Contents?: true

Size: 876 Bytes

Versions: 11

Compression:

Stored size: 876 Bytes

Contents

# encoding: utf-8

module FFaker
  # Author: wiseleyb<wiseleyb@gmail.com>
  # 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

11 entries across 11 versions & 1 rubygems

Version Path
ffaker-2.11.0 lib/ffaker/phone_number_da.rb
ffaker-2.10.0 lib/ffaker/phone_number_da.rb
ffaker-2.9.0 lib/ffaker/phone_number_da.rb
ffaker-2.8.1 lib/ffaker/phone_number_da.rb
ffaker-2.8.0 lib/ffaker/phone_number_da.rb
ffaker-2.7.0 lib/ffaker/phone_number_da.rb
ffaker-2.6.0 lib/ffaker/phone_number_da.rb
ffaker-2.5.0 lib/ffaker/phone_number_da.rb
ffaker-2.4.0 lib/ffaker/phone_number_da.rb
ffaker-2.3.0 lib/ffaker/phone_number_da.rb
ffaker-2.2.0 lib/ffaker/phone_number_da.rb