Sha256: f0cb9f72e24ac2de0f5ec9f141731a405ae226a08a50b2c0ca6215a9dd858197

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

# ApiClient::Dispatcher provides methods to make requests
module ApiClient::Dispatcher
  autoload :Typhoeus, 'api-client/dispatcher/typhoeus'
  autoload :NetHttp, 'api-client/dispatcher/net-http'

  def self.method_missing(method, *args)
    if defined?(::Typhoeus)
        Typhoeus.send(method, *args)
    else
        NetHttp.send(method, *args)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
api-client-1.6.1 lib/api-client/dispatcher.rb
api-client-1.6.0 lib/api-client/dispatcher.rb