# frozen_string_literal: true require 'api_proxy/version' module ApiProxy autoload :Config, 'api_proxy/config' autoload :Middleware, 'api_proxy/middleware' autoload :RequestOptionsBuilder, 'api_proxy/request_options_builder' autoload :Request, 'api_proxy/request' def self.configuration(namespace) @configuration ||= {} @configuration[namespace] ||= Config.new end # @example # ApiProxy.setup(:namespace) do |config| # config.api_host = '192.168.99.100' # end # def self.setup(namespace = :default) yield(configuration(namespace)) end end