Collect links

Hi, i have an stupid cuestion, so here it is

i need to search something on google, and then collect all the blue
links
and green urls in the results with Watir.

so, my problem is wich property i can use to do this, or better, a piece
of
code to help me!!

thanks