Class: Org::Familysearch::Ws::Familytree::V2::Schema::NameAssertion
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb,
lib/ruby-fs-stack/familytree/name.rb
Overview
A name of a person.
Instance Attribute Summary collapse
-
#value ⇒ Object
The value for this assertion.
Attributes inherited from Assertion
#action, #citations, #contributors, #disposition, #id, #modifiable, #modified, #notes, #personas, #selected, #tempId, #version
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a NameAssertion from a (parsed) JSON hash.
Instance Method Summary collapse
- #add_value(value) ⇒ Object
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this NameAssertion with a json hash.
- #select(value_id) ⇒ Object
-
#to_jaxb_json_hash ⇒ Object
the json hash for this NameAssertion.
Methods inherited from Assertion
Instance Attribute Details
#value ⇒ Object
The value for this assertion.
6065 6066 6067 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6065 def value @value end |
Class Method Details
.from_json(o) ⇒ Object
constructs a NameAssertion from a (parsed) JSON hash
6081 6082 6083 6084 6085 6086 6087 6088 6089 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6081 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
#add_value(value) ⇒ Object
58 59 60 61 |
# File 'lib/ruby-fs-stack/familytree/name.rb', line 58 def add_value(value) self.value = NameValue.new self.value.add_form(value) end |
#init_jaxb_json_hash(_o) ⇒ Object
initializes this NameAssertion with a json hash
6075 6076 6077 6078 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6075 def init_jaxb_json_hash(_o) super _o @value = Org::Familysearch::Ws::Familytree::V2::Schema::NameValue.from_json(_o['value']) unless _o['value'].nil? end |
#select(value_id) ⇒ Object
63 64 65 66 67 |
# File 'lib/ruby-fs-stack/familytree/name.rb', line 63 def select(value_id) self.action = 'Select' self.value = AssertionValue.new self.value.id = value_id end |
#to_jaxb_json_hash ⇒ Object
the json hash for this NameAssertion
6068 6069 6070 6071 6072 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6068 def to_jaxb_json_hash _h = super _h['value'] = value.to_jaxb_json_hash unless value.nil? return _h end |