Class: Org::Familysearch::Ws::Familytree::V2::Schema::PersonPersona

Inherits:
EntityReference show all
Defined in:
lib/ruby-fs-stack/enunciate/familytree.rb

Overview

A Family Tree person reference.

Instance Attribute Summary collapse

Attributes inherited from EntityReference

#current, #id, #tempId, #version

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from EntityReference

#to_json

Instance Attribute Details

#contributorsObject

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_hashObject

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