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

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-fs-stack/enunciate/familytree.rb

Overview

An assertion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

The action.



4756
4757
4758
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4756

def action
  @action
end

#citationsObject

the citation references.



4776
4777
4778
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4776

def citations
  @citations
end

#contributorsObject

The contributors.



4770
4771
4772
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4770

def contributors
  @contributors
end

#dispositionObject

the assertion assertion.



4764
4765
4766
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4764

def disposition
  @disposition
end

#idObject

the id of the assertion.



4754
4755
4756
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4754

def id
  @id
end

#modifiableObject

Whether this is a modifiable assertion.



4762
4763
4764
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4762

def modifiable
  @modifiable
end

#modifiedObject

The modified timestamp for this assertion.



4766
4767
4768
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4766

def modified
  @modified
end

#notesObject

the note references.



4774
4775
4776
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4774

def notes
  @notes
end

#personasObject

The personas.



4772
4773
4774
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4772

def personas
  @personas
end

#selectedObject

The selection information.



4768
4769
4770
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4768

def selected
  @selected
end

#tempIdObject

A temporary id for this person (e.g. for a person not persisted yet).



4758
4759
4760
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4758

def tempId
  @tempId
end

#versionObject

The version for this assertion.



4760
4761
4762
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4760

def version
  @version
end

Class Method Details

.from_json(o) ⇒ Object

constructs a Assertion from a (parsed) JSON hash



4850
4851
4852
4853
4854
4855
4856
4857
4858
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4850

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 Assertion with a json hash



4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4818

def init_jaxb_json_hash(_o)
  @id = String.from_json(_o['id']) unless _o['id'].nil?
  @action = String.from_json(_o['action']) unless _o['action'].nil?
  @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil?
  @version = String.from_json(_o['version']) unless _o['version'].nil?
  @modifiable = Boolean.from_json(_o['modifiable']) unless _o['modifiable'].nil?
  @disposition = String.from_json(_o['disposition']) unless _o['disposition'].nil?
  @modified = Time.from_json(_o['modified']) unless _o['modified'].nil?
  @selected = Org::Familysearch::Ws::Familytree::V2::Schema::ValueSelection.from_json(_o['selected']) unless _o['selected'].nil?
  if !_o['contributors'].nil?
    @contributors = Array.new
    _oa = _o['contributors']
    _oa.each { | _item | @contributors.push Org::Familysearch::Ws::Familytree::V2::Schema::ContributorReference.from_json(_item) }
  end
  if !_o['personas'].nil?
    @personas = Array.new
    _oa = _o['personas']
    _oa.each { | _item | @personas.push Org::Familysearch::Ws::Familytree::V2::Schema::PersonaReference.from_json(_item) }
  end
  if !_o['notes'].nil?
    @notes = Array.new
    _oa = _o['notes']
    _oa.each { | _item | @notes.push Org::Familysearch::Ws::Familytree::V2::Schema::EntityReference.from_json(_item) }
  end
  if !_o['citations'].nil?
    @citations = Array.new
    _oa = _o['citations']
    _oa.each { | _item | @citations.push Org::Familysearch::Ws::Familytree::V2::Schema::EntityReference.from_json(_item) }
  end
end

#to_jaxb_json_hashObject

the json hash for this Assertion



4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4779

def to_jaxb_json_hash
  _h = {}
  _h['id'] = id.to_jaxb_json_hash unless id.nil?
  _h['action'] = action.to_jaxb_json_hash unless action.nil?
  _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil?
  _h['version'] = version.to_jaxb_json_hash unless version.nil?
  _h['modifiable'] = modifiable.to_jaxb_json_hash unless modifiable.nil?
  _h['disposition'] = disposition.to_jaxb_json_hash unless disposition.nil?
  _h['modified'] = modified.to_jaxb_json_hash unless modified.nil?
  _h['selected'] = selected.to_jaxb_json_hash unless selected.nil?
  if !contributors.nil?
    _ha = Array.new
    contributors.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['contributors'] = _ha
  end
  if !personas.nil?
    _ha = Array.new
    personas.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['personas'] = _ha
  end
  if !notes.nil?
    _ha = Array.new
    notes.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['notes'] = _ha
  end
  if !citations.nil?
    _ha = Array.new
    citations.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['citations'] = _ha
  end
  return _h
end

#to_jsonObject

the json (string form) for this Assertion



4813
4814
4815
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4813

def to_json
  to_jaxb_json_hash.to_json
end