Get particular thing from #<Net::HTTP google.com:80 open=tru

hi,

#<Net::HTTP google.com:80 open=true>

I get this by using

p http

now i want to get “google.com” from it how can i get?

Thanks,

Read /usr/lib/ruby/1.8/net/http.rb (or wherever it is on your system),
it has examples at the top.