module FFaker::AddressKR
Constants
- BUILDING_DONGS
- BUILDING_SUFFIXES
- METROPOLITAN_CITIES
- PROVINCES
- STREET_SUFFIXES
- TOWN_SUFFIXES
Public Instance Methods
Source
# File lib/ffaker/address_kr.rb, line 55 def address_detail FFaker.numerify(fetch_sample([ building_name, "#{building_name} ###호", "#{building_name} #{fetch_sample(BUILDING_DONGS)} ###호" ])) end
Source
# File lib/ffaker/address_kr.rb, line 51 def building_name "#{NameKR.first_name}#{fetch_sample(BUILDING_SUFFIXES)}" end
Source
# File lib/ffaker/address_kr.rb, line 34 def land_address fetch_sample([ "#{metropolitan_city} #{borough} #{town} #{land_number}", "#{province} #{town} #{land_number}" ]) end
Source
# File lib/ffaker/address_kr.rb, line 41 def land_number FFaker.numerify(fetch_sample([ '###', '###-#', '###-##', '####', '####-#' ])) end
Source
# File lib/ffaker/address_kr.rb, line 83 def metropolitan_city fetch_sample(METROPOLITAN_CITIES) end
Source
# File lib/ffaker/address_kr.rb, line 21 def old_postal_code FFaker.numerify('###-###') end
Source
# File lib/ffaker/address_kr.rb, line 17 def postal_code FFaker.numerify('#####') end
Source
# File lib/ffaker/address_kr.rb, line 79 def province fetch_sample(PROVINCES) end
Source
# File lib/ffaker/address_kr.rb, line 25 def road_addess fetch_sample([ "#{metropolitan_city} #{borough} #{street}", "#{province} #{town} #{street}", "#{metropolitan_city} #{borough} #{street} (#{town})", "#{province} #{town} #{street} (#{town})" ]) end
Source
# File lib/ffaker/address_kr.rb, line 63 def street FFaker.numerify("#{NameKR.first_name}#{fetch_sample(STREET_SUFFIXES)}") end
Source
# File lib/ffaker/address_kr.rb, line 67 def town "#{NameKR.first_name}#{fetch_sample(TOWN_SUFFIXES)}" end