Sha256: cb78182b46fc7f995b98e9898da911e814850d67acf301a4267408d090d28e1e

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 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

7 entries across 7 versions & 1 rubygems

Version Path
api-client-1.9.1 lib/api-client/dispatcher.rb
api-client-1.9.0 lib/api-client/dispatcher.rb
api-client-1.8.2 lib/api-client/dispatcher.rb
api-client-1.8.1 lib/api-client/dispatcher.rb
api-client-1.8.0 lib/api-client/dispatcher.rb
api-client-1.7.1 lib/api-client/dispatcher.rb
api-client-1.7.0 lib/api-client/dispatcher.rb