Class: AtlasEngine::ValidationTranscriber::StreetParser
- Inherits:
-
Object
- Object
- AtlasEngine::ValidationTranscriber::StreetParser
- Defined in:
- app/lib/atlas_engine/validation_transcriber/street_parser.rb
Instance Method Summary collapse
Instance Method Details
#parse(street:, locale: nil) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/lib/atlas_engine/validation_transcriber/street_parser.rb', line 7 def parse(street:, locale: nil) lang = Worldwide.locale(code: locale || I18n.locale).language_subtag.to_s.downcase if "fr" == lang FrenchStreetParser.new.parse(street: street) else EnglishStreetParser.new.parse(street: street) end end |