Class: CDMDEXER::GeoNameToPlaceName

Inherits:
Object
  • Object
show all
Defined in:
lib/cdmdexer/formatters.rb

Class Method Summary collapse

Class Method Details

.format(value) ⇒ Object



30
31
32
33
34
35
36
37
# File 'lib/cdmdexer/formatters.rb', line 30

def self.format(value)
  return if !value.respond_to?(:fetch)
  [
    value['name'],
    value['adminName1'],
    value['adminName2']
  ].select { |place| place != 'Minnesota'}.compact.uniq
end