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

Inherits:
Assertion
  • Object
show all
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

Attributes inherited from Assertion

#action, #citations, #contributors, #disposition, #id, #modifiable, #modified, #notes, #personas, #selected, #tempId, #version

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Assertion

#to_json

Instance Attribute Details

#valueObject

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_valueObject



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_hashObject

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