Class: Org::Familysearch::Ws::Familytree::V2::Schema::ExistsAssertion
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb,
lib/ruby-fs-stack/familytree/exist.rb
Overview
The existence of a person or relationship.
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 ExistsAssertion from a (parsed) JSON hash.
Instance Method Summary collapse
- #add_value ⇒ Object
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this ExistsAssertion with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this ExistsAssertion.
Methods inherited from Assertion
Instance Attribute Details
#value ⇒ Object
The value for this assertion.
5147 5148 5149 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5147 def value @value end |
Class Method Details
.from_json(o) ⇒ Object
constructs a ExistsAssertion from a (parsed) JSON hash
5163 5164 5165 5166 5167 5168 5169 5170 5171 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5163 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 ⇒ Object
4 5 6 |
# File 'lib/ruby-fs-stack/familytree/exist.rb', line 4 def add_value self.value = ExistsValue.new end |
#init_jaxb_json_hash(_o) ⇒ Object
initializes this ExistsAssertion with a json hash
5157 5158 5159 5160 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5157 def init_jaxb_json_hash(_o) super _o @value = Org::Familysearch::Ws::Familytree::V2::Schema::ExistsValue.from_json(_o['value']) unless _o['value'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this ExistsAssertion
5150 5151 5152 5153 5154 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 5150 def to_jaxb_json_hash _h = super _h['value'] = value.to_jaxb_json_hash unless value.nil? return _h end |