What is the function of a gerund in the sentence 'I enjoy reading'?

The function of the gerund "reading" in the sentence "I enjoy reading" is that it serves as the direct object of the verb "enjoy."