lib/nimbu-api/connection.rb
def connection(options={})
      conn_options = default_options(options).keep_if {|k,_| ALLOWED_OPTIONS.include? k }
      clear_cache unless options.empty?
      puts "OPTIONS:#{conn_options.inspect}" if ENV['DEBUG']

      Faraday.new(conn_options.merge(:builder => stack(options)))
    end
def connection(options={})
      conn_options = default_options(options).keep_if {|k,_| ALLOWED_OPTIONS.include? k }
      clear_cache unless options.empty?
      puts "OPTIONS:#{conn_options.inspect}" if ENV['DEBUG']

      Faraday.new(conn_options.merge(:builder => stack(options)))
    end
Returns a Fraday::Connection object