From: Jean-Christophe Le Lann Date: 2011-08-26T16:57:36+09:00 Subject: Re: How the access the values of this result Le 26/08/2011 09:50, Jean-Christophe Le Lann a 辿crit : > Le 26/08/2011 09:33, QAS WM a 辿crit : >> I am getting the following as a result of a script I run. >> >> #> @address2="1000 N WICKHAM RD", @zip4="8937", @state="FL"> >> >> in a variable named result. >> >> How can I access just the Address value and print it on the screen? >> > > puts result.id > > JCLL > > Sorry. That is wrong, and .id is deprecated (use .object_id). Anyway, I am not sure what you need really class Ups def initialize town,guy @town,guy=town,guy end end result = Ups.new(:madrid,:diego) puts result # <== that number ? puts result.object_id #80885640 <== or this one ?