Class: Org::Familysearch::Ws::Familytree::V2::Schema::PersonPersona
- Inherits:
-
EntityReference
- Object
- EntityReference
- Org::Familysearch::Ws::Familytree::V2::Schema::PersonPersona
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A Family Tree person reference.
Instance Attribute Summary collapse
-
#contributors ⇒ Object
The contributors.
Attributes inherited from EntityReference
#current, #id, #tempId, #version
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a PersonPersona from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this PersonPersona with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this PersonPersona.
Methods inherited from EntityReference
Instance Attribute Details
#contributors ⇒ Object
The contributors.
5546 5547 5548 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5546 def contributors @contributors end |
Class Method Details
.from_json(o) ⇒ Object
constructs a PersonPersona from a (parsed) JSON hash
5570 5571 5572 5573 5574 5575 5576 5577 5578 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5570 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 PersonPersona with a json hash
5560 5561 5562 5563 5564 5565 5566 5567 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5560 def init_jaxb_json_hash(_o) super _o if !_o['contributors'].nil? @contributors = Array.new _oa = _o['contributors'] _oa.each { | _item | @contributors.push Org::Familysearch::Ws::Familytree::V2::Schema::ContributorReference.from_json(_item) } end end |
#to_jaxb_json_hash ⇒ Object
the json hash for this PersonPersona
5549 5550 5551 5552 5553 5554 5555 5556 5557 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5549 def to_jaxb_json_hash _h = super if !contributors.nil? _ha = Array.new contributors.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['contributors'] = _ha end return _h end |