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

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

Overview

A Family Tree parent reference.

Instance Attribute Summary collapse

Attributes inherited from PersonReference

#gender

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

#characteristicsObject

A collection of characteristics for this relationship.



8400
8401
8402
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8400

def characteristics
  @characteristics
end

Class Method Details

.from_json(o) ⇒ Object

constructs a ParentReference from a (parsed) JSON hash



8424
8425
8426
8427
8428
8429
8430
8431
8432
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8424

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 ParentReference with a json hash



8414
8415
8416
8417
8418
8419
8420
8421
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8414

def init_jaxb_json_hash(_o)
  super _o
  if !_o['characteristics'].nil?
    @characteristics = Array.new
    _oa = _o['characteristics']
    _oa.each { | _item | @characteristics.push Org::Familysearch::Ws::Familytree::V2::Schema::CharacteristicAssertion.from_json(_item) }
  end
end

#to_jaxb_json_hashObject

the json hash for this ParentReference



8403
8404
8405
8406
8407
8408
8409
8410
8411
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8403

def to_jaxb_json_hash
  _h = super
  if !characteristics.nil?
    _ha = Array.new
    characteristics.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['characteristics'] = _ha
  end
  return _h
end