Class: Org::Familysearch::Ws::Familytree::V2::Schema::SearchPerson
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb,
lib/ruby-fs-stack/familytree/search.rb
Overview
A person used for displaying seach results.
Instance Attribute Summary collapse
-
#maxDeathYear ⇒ Object
The maximum death year for this person.
-
#minBirthYear ⇒ Object
The minimum birth year for this person.
Attributes inherited from Person
#assertions, #changes, #discussions, #families, #id, #identifiers, #parents, #personId, #personas, #properties, #relationships, #requestedId, #tempId, #version, #watches
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a SearchPerson from a (parsed) JSON hash.
Instance Method Summary collapse
- #events ⇒ Object
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this SearchPerson with a json hash.
-
#marriage ⇒ Object
Always will return nil.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this SearchPerson.
Methods inherited from Person
#add_baptism, #add_birth, #add_confirmation, #add_death, #add_endowment, #add_gender, #add_initiatory, #add_name, #add_sealing_to_parents, #baptisms, #birth, #births, #confirmations, #create_combine, #create_relationship, #death, #deaths, #divorces, #endowments, #father_id, #full_name, #full_names, #gender, #initiatories, #marriages, #mother_id, #sealing_to_parents, #sealing_to_spouses, #select_birth_summary, #select_death_summary, #select_father_summary, #select_mother_summary, #select_name_summary, #select_spouse_summary, #spouse_id, #surname, #surnames, #to_json
Instance Attribute Details
#maxDeathYear ⇒ Object
The maximum death year for this person.
6769 6770 6771 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6769 def maxDeathYear @maxDeathYear end |
#minBirthYear ⇒ Object
The minimum birth year for this person.
6767 6768 6769 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6767 def minBirthYear @minBirthYear end |
Class Method Details
.from_json(o) ⇒ Object
constructs a SearchPerson from a (parsed) JSON hash
6787 6788 6789 6790 6791 6792 6793 6794 6795 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6787 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
#events ⇒ Object
6 7 8 |
# File 'lib/ruby-fs-stack/familytree/search.rb', line 6 def events (assertions && assertions.events) ? assertions.events : [] end |
#init_jaxb_json_hash(_o) ⇒ Object
initializes this SearchPerson with a json hash
6780 6781 6782 6783 6784 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6780 def init_jaxb_json_hash(_o) super _o @minBirthYear = String.from_json(_o['minBirthYear']) unless _o['minBirthYear'].nil? @maxDeathYear = String.from_json(_o['maxDeathYear']) unless _o['maxDeathYear'].nil? end |
#marriage ⇒ Object
Always will return nil. Method is here for v1 backwards compatibility
11 12 13 |
# File 'lib/ruby-fs-stack/familytree/search.rb', line 11 def marriage nil end |
#to_jaxb_json_hash ⇒ Object
the json hash for this SearchPerson
6772 6773 6774 6775 6776 6777 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6772 def to_jaxb_json_hash _h = super _h['minBirthYear'] = minBirthYear.to_jaxb_json_hash unless minBirthYear.nil? _h['maxDeathYear'] = maxDeathYear.to_jaxb_json_hash unless maxDeathYear.nil? return _h end |