Sha256: 89e26cbf482254116f482288adef7e4ba261cb37512bd15c1e40a2e1ea8c89eb
Contents?: true
Size: 421 Bytes
Versions: 5
Compression:
Stored size: 421 Bytes
Contents
# encoding: utf-8 require 'ffaker/address' module Faker module AddressUK include Faker::Address extend ModuleUtils extend self COUNTRY = ['England', 'Scotland', 'Wales', 'Northern Ireland'] POSTCODE = ['??# #??', '??## #??'] def county COUNTY.sample end def country COUNTRY.sample end def postcode Faker.bothify(POSTCODE.sample).upcase end end end
Version data entries
5 entries across 5 versions & 2 rubygems