the match has parents. should I be using the parents from match
instead?
Thanks.
Karmen
person = client.familytree_v2.person ref, :parents => 'all'
or
person = client.familytree_v2.person ref, :parents => 'summary'
if you request 'all', you will get all sets of parents, or 'summary'
will give you back just the summary or default parents (one set).
This only gives you the IDs for the parents, but you can do the
following:
ids = person.parents[0].parents.collect{|p|p.id} #=> will give you
both parent IDs for the first set
parent_records = client.familytree_v2.person ids #=> will give you the
person records for both parents
person.parents #=> is the array of parent sets
person.parents[0].parents #=> is the array of parents in the first
set.
Does this help?
--
Jimmy
Thanks.
Karmen