Module: Coinbase::Middleware

Defined in:
lib/coinbase/middleware.rb

Overview

A module for middleware that can be used with Faraday.

Class Method Summary collapse

Class Method Details

.configObject

Returns the default middleware configuration for the Coinbase SDK.



13
14
15
16
17
18
19
# File 'lib/coinbase/middleware.rb', line 13

def self.config
  Coinbase::Client::Configuration.default.tap do |config|
    config.debugging = Coinbase.configuration.debug_api
    config.host = Coinbase.configuration.api_url
    config.request(:authenticator)
  end
end