In which sentence below is the underlined word an indirect object?

Gore published An Inconvenient Truth a few years after he ran for president.

My sister gave me a signed copy of the book.

She said she preferred the documentary film

My sister gave me a signed copy of the book.