Just what does ‘gritty’ mean?

From The Atlantic Cities: "Gritty is one those condescending terms in the urbanist lexicon that can often say more about the writer's preconceptions than the place they're describing. It implies an attitude posed between admiration and fastidiousness: inner city 'hoods are great and all, but a few extra little farmers' markets and independent boutiques for People Like Us wouldn't go amiss. Does the perceived grit come from a place's poor state of repair? Or is it just a shorthand to describe a place inhabited by the urban working class?"