Class: Org::Familysearch::Ws::Familytree::V2::Schema::PersonaReference
- Inherits:
-
EntityReference
- Object
- EntityReference
- Org::Familysearch::Ws::Familytree::V2::Schema::PersonaReference
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A Family Tree persona reference.
Instance Attribute Summary collapse
-
#child ⇒ Object
(no documentation provided).
-
#disposition ⇒ Object
(no documentation provided).
-
#parents ⇒ Object
(no documentation provided).
-
#spouses ⇒ Object
(no documentation provided).
Attributes inherited from EntityReference
#current, #id, #tempId, #version
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a PersonaReference from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this PersonaReference with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this PersonaReference.
Methods inherited from EntityReference
Instance Attribute Details
#child ⇒ Object
(no documentation provided)
5305 5306 5307 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5305 def child @child end |
#disposition ⇒ Object
(no documentation provided)
5299 5300 5301 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5299 def disposition @disposition end |
#parents ⇒ Object
(no documentation provided)
5303 5304 5305 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5303 def parents @parents end |
#spouses ⇒ Object
(no documentation provided)
5301 5302 5303 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5301 def spouses @spouses end |
Class Method Details
.from_json(o) ⇒ Object
constructs a PersonaReference from a (parsed) JSON hash
5343 5344 5345 5346 5347 5348 5349 5350 5351 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5343 def self.from_json(o) if o.nil? return nil else inst = new inst.init_jaxb_json_hash o return inst end end |
Instance Method Details
#init_jaxb_json_hash(_o) ⇒ Object
initializes this PersonaReference with a json hash
5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5326 def init_jaxb_json_hash(_o) super _o @disposition = String.from_json(_o['disposition']) unless _o['disposition'].nil? if !_o['spouse'].nil? @spouses = Array.new _oa = _o['spouse'] _oa.each { | _item | @spouses.push Org::Familysearch::Ws::Familytree::V2::Schema::PersonReference.from_json(_item) } end if !_o['parent'].nil? @parents = Array.new _oa = _o['parent'] _oa.each { | _item | @parents.push Org::Familysearch::Ws::Familytree::V2::Schema::PersonReference.from_json(_item) } end @child = Org::Familysearch::Ws::Familytree::V2::Schema::PersonReference.from_json(_o['child']) unless _o['child'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this PersonaReference
5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5308 def to_jaxb_json_hash _h = super _h['disposition'] = disposition.to_jaxb_json_hash unless disposition.nil? if !spouses.nil? _ha = Array.new spouses.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['spouse'] = _ha end if !parents.nil? _ha = Array.new parents.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['parent'] = _ha end _h['child'] = child.to_jaxb_json_hash unless child.nil? return _h end |