Sha256: 2071c77b322d93fc8c86b2abc324d9cabfd3f1392a30562559fded807bc99187

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

# encoding: utf-8

require 'ffaker/address'

module Faker
  module AddressUK
    include Faker::Address

    extend ModuleUtils
    extend self

    def county
      COUNTY.rand
    end

    def country
      COUNTRY.rand
    end

    def postcode
      Faker.bothify(POSTCODE.rand).upcase
    end

    COUNTRY = k ['England', 'Scotland', 'Wales', 'Northern Ireland']
    POSTCODE = k ['??# #??', '??## #??']
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffaker-1.30.0 lib/ffaker/address_uk.rb
ffaker-1.25.0 lib/ffaker/address_uk.rb
ffaker-1.24.0 lib/ffaker/address_uk.rb
ffaker-1.23.0 lib/ffaker/address_uk.rb