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

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

Overview

A characteristic value.

Instance Attribute Summary collapse

Attributes inherited from AssertionValue

#id, #title

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AssertionValue

#to_json

Instance Attribute Details

#dateObject

The date the assertion occurred.



7648
7649
7650
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7648

def date
  @date
end

#detailObject

The generic value of this characteristic.



7646
7647
7648
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7646

def detail
  @detail
end

#lineageObject

The lineage.



7644
7645
7646
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7644

def lineage
  @lineage
end

#placeObject

The place the assertion occurred.



7650
7651
7652
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7650

def place
  @place
end

#typeObject

The type of the characteristic.



7642
7643
7644
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7642

def type
  @type
end

Class Method Details

.from_json(o) ⇒ Object

constructs a CharacteristicValue from a (parsed) JSON hash



7674
7675
7676
7677
7678
7679
7680
7681
7682
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7674

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



7664
7665
7666
7667
7668
7669
7670
7671
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7664

def init_jaxb_json_hash(_o)
  super _o
  @type = String.from_json(_o['type']) unless _o['type'].nil?
  @lineage = String.from_json(_o['lineage']) unless _o['lineage'].nil?
  @detail = String.from_json(_o['detail']) unless _o['detail'].nil?
  @date = Org::Familysearch::Ws::Familytree::V2::Schema::GenDate.from_json(_o['date']) unless _o['date'].nil?
  @place = Org::Familysearch::Ws::Familytree::V2::Schema::Place.from_json(_o['place']) unless _o['place'].nil?
end

#to_jaxb_json_hashObject

the json hash for this CharacteristicValue



7653
7654
7655
7656
7657
7658
7659
7660
7661
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7653

def to_jaxb_json_hash
  _h = super
  _h['type'] = type.to_jaxb_json_hash unless type.nil?
  _h['lineage'] = lineage.to_jaxb_json_hash unless lineage.nil?
  _h['detail'] = detail.to_jaxb_json_hash unless detail.nil?
  _h['date'] = date.to_jaxb_json_hash unless date.nil?
  _h['place'] = place.to_jaxb_json_hash unless place.nil?
  return _h
end