Class: AtlasEngine::Fo::AddressImporter::Corrections::OpenAddress::CityCorrector
- Inherits:
-
Object
- Object
- AtlasEngine::Fo::AddressImporter::Corrections::OpenAddress::CityCorrector
- Extended by:
- T::Sig
- Defined in:
- app/countries/atlas_engine/fo/address_importer/corrections/open_address/city_corrector.rb
Class Method Summary collapse
Class Method Details
.apply(address) ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/countries/atlas_engine/fo/address_importer/corrections/open_address/city_corrector.rb', line 14 def apply(address) if address[:city] == ["Nes, Eysturoy"] || address[:city] == ["Nes, Vágur"] address[:city] = ["Nes"] elsif address[:city] == ["Syðradalur, Kalsoy"] || address[:city] == ["Syðradalur, Streymoy"] address[:city] = ["Syðradalur"] end end |