Which describes the underlined word in the sentence?

Carlos gave HER(Underlined) the name Sky because of the color of her eyes.

A.
predicate adjective

B.
indirect object

C.
direct object

D.
predicate nominative