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