lib/geonames_api/country.rb in geonames_api-0.0.2 vs lib/geonames_api/country.rb in geonames_api-0.0.3
- old
+ new
@@ -1,16 +1,8 @@
module GeoNamesAPI
class Country < GeoNamesAPI::Object
METHOD = "countryInfoJSON"
- ID = ["country"]
-
- def self.all
- where.collect { |response| new(response) }
- end
-
- def self.where(params={})
- JSON.load(open(url(params)).read)["geonames"]
- end
+ ID = "country"
end
end
\ No newline at end of file