Electrical connections to a rotating part?

How about a Hall Effect sensor and a magnet?

I know, not exactly an electrical connection, but my bike computer seems to get a lot of info out of one.