Class: AtlasEngine::ValidationTranscriber::ProvinceCodeNormalizer
- Inherits:
-
Object
- Object
- AtlasEngine::ValidationTranscriber::ProvinceCodeNormalizer
- Extended by:
- T::Sig
- Defined in:
- app/lib/atlas_engine/validation_transcriber/province_code_normalizer.rb
Class Method Summary collapse
Class Method Details
.normalize(country_code:, province_code:) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/lib/atlas_engine/validation_transcriber/province_code_normalizer.rb', line 10 def normalize(country_code:, province_code:) return if province_code.blank? return province_code if country_code.blank? iso_code(country_code, province_code) || iso_from_cldr(country_code, province_code) || province_code end |