class CDMDEXER::GeoNameIDToJson

Constants

URL

Public Class Methods

format(value) click to toggle source
# File lib/cdmdexer/formatters.rb, line 16
def self.format(value)
  JSON.parse(Net::HTTP.get_response(URI.parse("#{URL}&geonameId=#{value}")).body)
end