Module: Faker::AddressUK
- Extended by:
- AddressUK, ModuleUtils
- Includes:
- Address
- Included in:
- AddressUK
- Defined in:
- lib/ffaker/address_uk.rb
Constant Summary collapse
- COUNTRY =
['England', 'Scotland', 'Wales', 'Northern Ireland']
- POSTCODE =
['??# #??', '??## #??']
Constants included from Address
Faker::Address::CITY_PREFIXES, Faker::Address::COMPASS_DIRECTIONS, Faker::Address::SEC_ADDR
Instance Method Summary collapse
Methods included from ModuleUtils
Methods included from Address
#building_number, #city, #city_prefix, #city_suffix, #country_code, #neighborhood, #secondary_address, #street_address, #street_name, #street_suffix, #uk_country, #uk_county, #uk_postcode, #us_state, #us_state_abbr, #zip_code
Instance Method Details
#country ⇒ Object
19 20 21 |
# File 'lib/ffaker/address_uk.rb', line 19 def country COUNTRY.sample end |
#county ⇒ Object
15 16 17 |
# File 'lib/ffaker/address_uk.rb', line 15 def county COUNTY.sample end |