Sha256: 023ac72810a49507fc4989c2c82bfca2fa5d3622ddabc0ab3ecec96eab9ec937

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

# encoding: utf-8

require 'ffaker/address'

module Faker
  module AddressUK
    include Faker::Address

    extend ModuleUtils
    extend self

    def county
      UK_COUNTY.rand
    end

    def country
      UK_COUNTRY.rand
    end

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

    UK_COUNTRY = k ['England', 'Scotland', 'Wales', 'Northern Ireland']
    UK_POSTCODE = k ['??# #??', '??## #??']
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffaker-1.22.1 lib/ffaker/address_uk.rb
ffaker-1.22.0 lib/ffaker/address_uk.rb