Answer: The correct answer is 3. metaphor.
Explanation:
A hyperbole is an exagerration.
A simile is a comparison used with like or as.
A metaphor is a comparison used without like or as.
Therefore, "The ocean was a magnet pulling me closer to it." includes a metaphor.