module FFaker::AddressKR
Constants
- BUILDING_DONGS
- BUILDING_SUFFIXES
- METROPOLITAN_CITIES
- PROVINCES
- STREET_SUFFIXES
- TOWN_SUFFIXES
Public Instance Methods
address_detail()
click to toggle 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
borough()
click to toggle source
# File lib/ffaker/address_kr.rb, line 71 def borough fetch_sample(BOROUGHS) end
building_name()
click to toggle source
# File lib/ffaker/address_kr.rb, line 51 def building_name "#{NameKR.first_name}#{fetch_sample(BUILDING_SUFFIXES)}" end
city()
click to toggle source
# File lib/ffaker/address_kr.rb, line 75 def city fetch_sample(CITIES) end
land_address()
click to toggle 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
land_number()
click to toggle source
# File lib/ffaker/address_kr.rb, line 41 def land_number FFaker.numerify(fetch_sample([ '###', '###-#', '###-##', '####', '####-#' ])) end
metropolitan_city()
click to toggle source
# File lib/ffaker/address_kr.rb, line 83 def metropolitan_city fetch_sample(METROPOLITAN_CITIES) end
old_postal_code()
click to toggle source
# File lib/ffaker/address_kr.rb, line 21 def old_postal_code FFaker.numerify('###-###') end
postal_code()
click to toggle source
# File lib/ffaker/address_kr.rb, line 17 def postal_code FFaker.numerify('#####') end
province()
click to toggle source
# File lib/ffaker/address_kr.rb, line 79 def province fetch_sample(PROVINCES) end
road_addess()
click to toggle 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
street()
click to toggle source
# File lib/ffaker/address_kr.rb, line 63 def street FFaker.numerify("#{NameKR.first_name}#{fetch_sample(STREET_SUFFIXES)}") end
town()
click to toggle source
# File lib/ffaker/address_kr.rb, line 67 def town "#{NameKR.first_name}#{fetch_sample(TOWN_SUFFIXES)}" end