Class: Org::Familysearch::Ws::Familytree::V2::Schema::PersonIdentifier
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A person id.
Instance Attribute Summary collapse
-
#type ⇒ Object
The type.
-
#value ⇒ Object
The value of the id.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a PersonIdentifier from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this PersonIdentifier with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this PersonIdentifier.
-
#to_json ⇒ Object
the json (string form) for this PersonIdentifier.
Instance Attribute Details
#type ⇒ Object
The type.
3091 3092 3093 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3091 def type @type end |
#value ⇒ Object
The value of the id.
3093 3094 3095 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3093 def value @value end |
Class Method Details
.from_json(o) ⇒ Object
constructs a PersonIdentifier from a (parsed) JSON hash
3115 3116 3117 3118 3119 3120 3121 3122 3123 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3115 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 PersonIdentifier with a json hash
3109 3110 3111 3112 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3109 def init_jaxb_json_hash(_o) @type = String.from_json(_o['type']) unless _o['type'].nil? @value = String.from_json(_o['value']) unless _o['value'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this PersonIdentifier
3096 3097 3098 3099 3100 3101 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3096 def to_jaxb_json_hash _h = {} _h['type'] = type.to_jaxb_json_hash unless type.nil? _h['value'] = value.to_jaxb_json_hash unless value.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this PersonIdentifier
3104 3105 3106 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3104 def to_json to_jaxb_json_hash.to_json end |