Class: Org::Familysearch::Ws::Familytree::V2::Schema::CharacteristicValue
- Inherits:
-
AssertionValue
- Object
- AssertionValue
- Org::Familysearch::Ws::Familytree::V2::Schema::CharacteristicValue
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A characteristic value.
Instance Attribute Summary collapse
-
#date ⇒ Object
The date the assertion occurred.
-
#detail ⇒ Object
The generic value of this characteristic.
-
#lineage ⇒ Object
The lineage.
-
#place ⇒ Object
The place the assertion occurred.
-
#type ⇒ Object
The type of the characteristic.
Attributes inherited from AssertionValue
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a CharacteristicValue from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this CharacteristicValue with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this CharacteristicValue.
Methods inherited from AssertionValue
Instance Attribute Details
#date ⇒ Object
The date the assertion occurred.
7648 7649 7650 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7648 def date @date end |
#detail ⇒ Object
The generic value of this characteristic.
7646 7647 7648 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7646 def detail @detail end |
#lineage ⇒ Object
The lineage.
7644 7645 7646 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7644 def lineage @lineage end |
#place ⇒ Object
The place the assertion occurred.
7650 7651 7652 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 7650 def place @place end |
#type ⇒ Object
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_hash ⇒ Object
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 |