Class: CDMBL::GeoNameToLocation

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

Class Method Summary collapse

Class Method Details

.format(value) ⇒ Object



22
23
24
25
26
# File 'lib/cdmbl/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