cartodb-4.29/services/geocoder/lib/geocoder_config.rb

17 lines
301 B
Ruby
Raw Permalink Normal View History

2020-06-15 10:58:47 +08:00
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