Sha256: ea5e31001bdd97dcee529a2b7395b92f86a77df583b78f18fd4e3112a81559f2

Contents?: true

Size: 757 Bytes

Versions: 6

Compression:

Stored size: 757 Bytes

Contents

# frozen_string_literal: true

module FFaker
  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

Version Path
ffaker-2.23.0 lib/ffaker/phone_number_da.rb
ffaker-2.22.0 lib/ffaker/phone_number_da.rb
ffaker-2.21.0 lib/ffaker/phone_number_da.rb
ffaker-2.20.0 lib/ffaker/phone_number_da.rb
ffaker-2.19.0 lib/ffaker/phone_number_da.rb
ffaker-2.18.0 lib/ffaker/phone_number_da.rb