Class: CDMDEXER::GeoNameToLocation

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

Class Method Summary collapse

Class Method Details

.format(value) ⇒ Object



22
23
24
25
26
# File 'lib/cdmdexer/formatters.rb', line 22

def self.format(value)
  return if !value.respond_to?(:fetch)
  return if !value['lat'] || !value['lng']
  "#{value['lat']},#{value['lng']}"
end