module FFaker::AddressPL

def building_number # :nodoc:

:nodoc:
def building_number # :nodoc:
  rand(1..199)
end

def city

def city
  fetch_sample(CITY)
end

def full_address(include_country = false, include_secondary = false)

Full Polish address with country name in French (according to Universal Postal Union).
def full_address(include_country = false, include_secondary = false)
  address = "#{street_address(include_secondary)} #{postal_code} #{city}"
  address = "#{address} POLOGNE" if include_country
  address
end

def secondary_number # :nodoc:

:nodoc:
def secondary_number # :nodoc:
  case rand(0..1)
  when 0 then " m. #{building_number}"
  when 1 then "/#{building_number}"
  end
end

def square

def square
  "#{square_prefix} #{fetch_sample(SQUARE)}"
end

def square_prefix

def square_prefix
  fetch_sample(SQUARE_PREFIXES)
end

def street

def street
  "#{street_prefix} #{fetch_sample(STREET)}"
end

def street_address(include_secondary = false)

def street_address(include_secondary = false)
  address = "#{street_name} #{building_number}"
  address = "#{address}#{secondary_number}" if include_secondary
  address
end

def street_name

def street_name
  fetch_sample([street, square])
end

def street_prefix

def street_prefix
  fetch_sample(STREET_PREFIXES)
end

def voivodeship

A voivodeship is an administrative area in Poland - a Polish equivalent of state.
def voivodeship
  fetch_sample(VOIVODESHIP)
end

def voivodeship_abbr

def voivodeship_abbr
  fetch_sample(VOIVODESHIP_ABBR)
end

def voivodeship_capital_city

def voivodeship_capital_city
  fetch_sample(VOIVODESHIP_CAPITAL_CITY)
end

def zip_code

def zip_code
  FFaker.numerify('##-###')
end