Class: Org::Familysearch::Ws::Familytree::V2::Schema::PersonIdentifiers
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A FamilyTree person identifiers section.
Instance Attribute Summary collapse
-
#identifiers ⇒ Object
The list of person identifiers.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a PersonIdentifiers from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this PersonIdentifiers with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this PersonIdentifiers.
-
#to_json ⇒ Object
the json (string form) for this PersonIdentifiers.
Instance Attribute Details
#identifiers ⇒ Object
The list of person identifiers.
3024 3025 3026 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3024 def identifiers @identifiers end |
Class Method Details
.from_json(o) ⇒ Object
constructs a PersonIdentifiers from a (parsed) JSON hash
3052 3053 3054 3055 3056 3057 3058 3059 3060 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3052 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 PersonIdentifiers with a json hash
3043 3044 3045 3046 3047 3048 3049 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3043 def init_jaxb_json_hash(_o) if !_o['identifier'].nil? @identifiers = Array.new _oa = _o['identifier'] _oa.each { | _item | @identifiers.push Org::Familysearch::Ws::Familytree::V2::Schema::PersonIdentifier.from_json(_item) } end end |
#to_jaxb_json_hash ⇒ Object
the json hash for this PersonIdentifiers
3027 3028 3029 3030 3031 3032 3033 3034 3035 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3027 def to_jaxb_json_hash _h = {} if !identifiers.nil? _ha = Array.new identifiers.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['identifier'] = _ha end return _h end |
#to_json ⇒ Object
the json (string form) for this PersonIdentifiers
3038 3039 3040 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3038 def to_json to_jaxb_json_hash.to_json end |