module FFaker::AddressFI
List of countries is from Freebase: www.googleapis.com/freebase/v1/mqlread?lang=/lang/fi&query=[%7B%22name%22:null,%22type%22:%22/location/country%22%7D] Streetnames are from areacode 32100 (posti.fi/postipalvelee/tyokalut/postinumerohaku/) List of cities is from fi.wikipedia.org/wiki/Luettelo_Suomen_kaupungeista
Constants
- STREET_NBR_FORMATS
Public Instance Methods
Source
# File lib/ffaker/address_fi.rb, line 36 def full_address "#{street_address}, #{zip_code} #{city}, SUOMI" end
Source
# File lib/ffaker/address_fi.rb, line 40 def random_country fetch_sample(COUNTRIES) end
Source
# File lib/ffaker/address_fi.rb, line 28 def street_address "#{street_name} #{street_nbr}" end
Source
# File lib/ffaker/address_fi.rb, line 24 def street_name fetch_sample(STREET) end
Source
# File lib/ffaker/address_fi.rb, line 32 def street_nbr FFaker.numerify(fetch_sample(STREET_NBR_FORMATS)) end
Source
# File lib/ffaker/address_fi.rb, line 16 def zip_code FFaker.numerify('#####') end