--000e0cd1847656d94a047c3aad53
Content-Type: text/plain; charset=ISO-8859-1

On Sat, Jan 2, 2010 at 1:15 AM, bingo bob <rupert / peaklocation.com> wrote:

> I have this array...
>
> [#<Yahoo::GeoPlanet::Place:0x1031d3fb8 @bounding_box42.554428,
> 1.52747], [42.536251, 1.50279]], @namea Massana", @woe_id72580",
> @longitude5153, @latitudeB.545052>]
>
> How do I access the thing called @woe_id within it!
>
> Whatever I try I can't seem to get at it?
> --
> Posted via http://www.ruby-forum.com/.
>
>
It appears the object has a reader for woe_id (based on
http://github.com/mattt/yahoo-geoplanet/blob/6c073d969191e1f03e7d5523713f742849443d11/lib/yahoo-geoplanet/place.rb)
which would mean you could do array.first.woe_id

Of course, you'll need to consider whether the array will always have one
object, and whether you want to always pull it from that object (ie can the
array return nil? or what if it returns five of these objects, do you still
only want the woe_id of the first?)

--000e0cd1847656d94a047c3aad53--