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

17 lines
301 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +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