module FFaker::AddressDE

def city

def city
  fetch_sample(CITY)
end

def random_type_of_street

def random_type_of_street
  case rand(20)
  when 0 then 'weg'
  when 1 then 'gasse'
  when 3 then 'hain'
  else 'str.'
  end
end

def state

def state
  fetch_sample(STATE)
end

def street_address

def street_address
  "#{street_name} #{1 + rand(192)}"
end

def street_name

def street_name
  name = fetch_sample([true, false]) ? NameDE.last_name.to_s : NameDE.first_name.to_s
  name + random_type_of_street
end

def zip_code

def zip_code
  FFaker.numerify '#####'
end