class ApiProxy::Client
Public Class Methods
new(options = {})
click to toggle source
# File lib/api_proxy/client.rb, line 5 def initialize(options = {}) @options = { namespace: :default }.merge(options) end
Private Instance Methods
perform_request(type, path, options)
click to toggle source
# File lib/api_proxy/client.rb, line 17 def perform_request(type, path, options) options = @options.merge(options) config = ApiProxy.configuration(options[:namespace]) url = File.join(config.api_url, path) ApiProxy::SignedRequest.new(type, url, options).perform end