Sha256: 975ce17ed8dd40a10828fbf39f45cad8e957bbbe18c4735d26b2b67889ec15b3

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module FFaker
  module AddressUK
    include FFaker::Address

    extend ModuleUtils
    extend self

    COUNTRY = ['England', 'Scotland', 'Wales', 'Northern Ireland'].freeze
    POSTCODE = ['??# #??', '??## #??'].freeze

    def county
      fetch_sample(COUNTY)
    end

    def country
      fetch_sample(COUNTRY)
    end

    def postcode
      FFaker.bothify(fetch_sample(POSTCODE)).upcase
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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