Basmati Rice with Onion and Ginger

1 cup basmati rice
1 tablespoon olive oil
1 large diced onion