genders?

3 views
Skip to first unread message

rogerdpack

unread,
Aug 31, 2011, 7:55:59 PM8/31/11
to Ruby FS Stack
Hello again.

pp( me_person = $com.familytree_v2.person( :me))
...
@genders=
[#<Org::Familysearch::Ws::Familytree::V2::Schema::GenderAssertion:
0x4dad080
@value=
#<Org::Familysearch::Ws::Familytree::V2::Schema::GenderValue:
0x4dacba0
@type="Male">>],


me_person.genders is not a method however.
Is this expected?
-r

Jimmy Z

unread,
Sep 1, 2011, 3:12:42 PM9/1/11
to Ruby FS Stack
The me_person doesn't have a genders() method, but you can get to it
through

me_person.assertions.genders

There is also a me_person.gender method which will return
assertions.genders[0].value.type (checking for nil values in the
chain).

I have never come across a case where a person has multiple genders. I
don't believe it is supported by the underlying domain.

Would a me_person.genders() be desired? And what would you expect it
to return? Following other convenience methods, I would expect it to
return an array of the display values ["Male"]

--
Jimmy
Reply all
Reply to author
Forward
0 new messages