module ApiProxy
Constants
- VERSION
Public Class Methods
configuration(namespace)
click to toggle source
# File lib/api_proxy.rb, line 15 def self.configuration(namespace) @configuration ||= {} @configuration[namespace] ||= Config.new end
setup(namespace = :default) { |configuration(namespace)| ... }
click to toggle source
@example
ApiProxy.setup(:namespace) do |config| config.api_host = '192.168.99.100' end
# File lib/api_proxy.rb, line 25 def self.setup(namespace = :default) yield(configuration(namespace)) end