def setUploadRatio(infoHash, ratio)
      raise "upload ratio must be Numeric, not a #{ratio.class}" if ratio && ! ratio.is_a?(Numeric)
      @handler.setUploadRatio(infoHash, ratio)
    end
def setUploadRatio(infoHash, ratio)
      raise "upload ratio must be Numeric, not a #{ratio.class}" if ratio && ! ratio.is_a?(Numeric)
      @handler.setUploadRatio(infoHash, ratio)
    end
Set the upload ratio. Pass nil to disable