Class: Org::Familysearch::Ws::Familytree::V2::Schema::AssertionValue
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
An assertion value.
Direct Known Subclasses
CharacteristicValue, EventValue, ExistsValue, GenderValue, NameValue, OrdinanceValue
Instance Attribute Summary collapse
-
#id ⇒ Object
the id of the value.
-
#title ⇒ Object
The title of the type in the case of user-defined characteristics.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a AssertionValue from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this AssertionValue with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this AssertionValue.
-
#to_json ⇒ Object
the json (string form) for this AssertionValue.
Instance Attribute Details
#id ⇒ Object
the id of the value.
74 75 76 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 74 def id @id end |
#title ⇒ Object
The title of the type in the case of user-defined characteristics.
76 77 78 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 76 def title @title end |
Class Method Details
.from_json(o) ⇒ Object
constructs a AssertionValue from a (parsed) JSON hash
98 99 100 101 102 103 104 105 106 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 98 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 AssertionValue with a json hash
92 93 94 95 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 92 def init_jaxb_json_hash(_o) @id = String.from_json(_o['id']) unless _o['id'].nil? @title = String.from_json(_o['title']) unless _o['title'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this AssertionValue
79 80 81 82 83 84 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 79 def to_jaxb_json_hash _h = {} _h['id'] = id.to_jaxb_json_hash unless id.nil? _h['title'] = title.to_jaxb_json_hash unless title.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this AssertionValue
87 88 89 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 87 def to_json to_jaxb_json_hash.to_json end |