From: Qas Wm Date: 2011-08-26T17:01:39+09:00 Subject: Re: How the access the values of this result I am sorry about not asking the right question Actually I am looking for the @address2 value. Jean-Christophe Le Lann wrote in post #1018591: > Le 26/08/2011 09:50, Jean-Christophe Le Lann a écrit : >> >> 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 ? -- Posted via http://www.ruby-forum.com/.