Module: Faker::AddressSE
Overview
Constant Summary
collapse
- ZIP_FORMATS =
k ['#####', '## ###']
- STREET_NBR_FORMATS =
k ['##', '#', '#a', '#b', '###']
Constants included
from Address
Faker::Address::CITY_PREFIXES, Faker::Address::COMPASS_DIRECTIONS, Faker::Address::SEC_ADDR
Instance Method Summary
collapse
const_missing, k, underscore
Methods included from Address
#building_number, #city_prefix, #city_suffix, #country, #neighborhood, #secondary_address, #street_suffix, #uk_country, #uk_county, #uk_postcode, #us_state, #us_state_abbr
Instance Method Details
#city ⇒ Object
20
21
22
|
# File 'lib/ffakerer/address_se.rb', line 20
def city
CITY.rand
end
|
#full_address ⇒ Object
36
37
38
|
# File 'lib/ffakerer/address_se.rb', line 36
def full_address
"#{street_address}, #{zip_code} #{city}, SVERIGE"
end
|
#random_country ⇒ Object
40
41
42
|
# File 'lib/ffakerer/address_se.rb', line 40
def random_country
COUNTRIES.rand
end
|
#street_address ⇒ Object
28
29
30
|
# File 'lib/ffakerer/address_se.rb', line 28
def street_address
"#{street_name} #{street_nbr}"
end
|
#street_name ⇒ Object
24
25
26
|
# File 'lib/ffakerer/address_se.rb', line 24
def street_name
STREET.rand
end
|