Module: Faraday::Adapter

Extended by:
AutoloadHelper
Defined in:
lib/faraday.rb,
lib/faraday/adapter/net_http.rb,
lib/faraday/adapter/typhoeus.rb,
lib/faraday/adapter/mock_request.rb

Defined Under Namespace

Modules: MockRequest, NetHttp, Typhoeus

Class Method Summary collapse

Methods included from AutoloadHelper

autoload_all, load

Class Method Details

.adaptersObject

Names of available adapters. Should not actually load them.


34
35
36
# File 'lib/faraday.rb', line 34

def self.adapters
  constants
end

.loaded_adaptersObject

Array of Adapters. These have been loaded and confirmed to work (right gems, etc).


39
40
41
# File 'lib/faraday.rb', line 39

def self.loaded_adapters
  adapters.map { |c| const_get(c) }.select { |a| a.loaded? }
end