cartodb-4.42/services/geocoder/lib/geocoder_config.rb
2024-04-06 05:25:13 +00: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