class Pumi::DataSource::NCDD
def build_row(row)
def build_row(row) code = parse_location_code(row) name_latin = row.fetch("name_latin") name_latin = MISSPELLINGS.find { |m| m.incorrect_text == name_latin }&.correct_text || name_latin Row.new( code:, name_km: row.fetch("name_km"), name_latin:, type: row.fetch("type") || MISSING_DATA.dig(code, :type) ) end