cartodb/services/geocoder/lib/geocoder_config.rb
2020-06-15 10:58:47 +08:00

17 lines
301 B
Ruby

require 'singleton'
module CartoDB
# A facility that abstracts clients from config and also allow for easy injection
class GeocoderConfig
include Singleton
def set(config = {})
@config = config
end
def get()
@config ||= ::Cartodb.config[:geocoder]
end
end
end