lib/graticule/geocoder.rb in graticule-0.1.3 vs lib/graticule/geocoder.rb in graticule-0.2.0

- old
+ new

@@ -6,21 +6,10 @@ # geocoder = Graticule.service(:google).new "api_key" # # See the documentation for your specific geocoder for more information # def self.service(name) - self.const_get "#{name}_geocoder".camelize - end - - # The Geocode class is the base class for all geocoder implementations. The - # geocoders must implement: - # - # * locate(address) - # - class Geocoder - def initialize - raise NotImplementedError - end + Geocoder.const_get name.to_s.camelize end # Base error class class Error < RuntimeError; end class CredentialsError < Error; end \ No newline at end of file