Sha256: e282d3e07b2d38ed8e136ea8421872f153ddb884b59abe726da79637a7c17868

Contents?: true

Size: 471 Bytes

Versions: 6

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

require 'ffaker/address'

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.17.0 lib/ffaker/address_uk.rb
ffaker-2.16.0 lib/ffaker/address_uk.rb
ffaker-2.15.0 lib/ffaker/address_uk.rb
ffaker-2.14.0 lib/ffaker/address_uk.rb
ffaker-2.13.0 lib/ffaker/address_uk.rb
ffaker-2.12.0 lib/ffaker/address_uk.rb