Class: Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQueryConnection
- Inherits:
-
Object
- Object
- Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQueryConnection
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
Created by IntelliJ IDEA. User: kuehneds Date: Feb 3, 2010 Time: 11:14:50 AM To change this template use File | Settings | File Templates.
Instance Attribute Summary collapse
-
#ancestor ⇒ Object
The id of a common ancestor.
-
#description ⇒ Object
(no documentation provided).
-
#persons ⇒ Object
(no documentation provided).
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a RelationshipQueryConnection from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this RelationshipQueryConnection with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this RelationshipQueryConnection.
-
#to_json ⇒ Object
the json (string form) for this RelationshipQueryConnection.
Instance Attribute Details
#ancestor ⇒ Object
The id of a common ancestor
2293 2294 2295 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2293 def ancestor @ancestor end |
#description ⇒ Object
(no documentation provided)
2295 2296 2297 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2295 def description @description end |
#persons ⇒ Object
(no documentation provided)
2297 2298 2299 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2297 def persons @persons end |
Class Method Details
.from_json(o) ⇒ Object
constructs a RelationshipQueryConnection from a (parsed) JSON hash
2329 2330 2331 2332 2333 2334 2335 2336 2337 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2329 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 RelationshipQueryConnection with a json hash
2318 2319 2320 2321 2322 2323 2324 2325 2326 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2318 def init_jaxb_json_hash(_o) @ancestor = Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQueryCommonAncestor.from_json(_o['ancestor']) unless _o['ancestor'].nil? @description = String.from_json(_o['description']) unless _o['description'].nil? if !_o['persons'].nil? @persons = Array.new _oa = _o['persons'] _oa.each { | _item | @persons.push Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQueryPerson.from_json(_item) } end end |
#to_jaxb_json_hash ⇒ Object
the json hash for this RelationshipQueryConnection
2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2300 def to_jaxb_json_hash _h = {} _h['ancestor'] = ancestor.to_jaxb_json_hash unless ancestor.nil? _h['description'] = description.to_jaxb_json_hash unless description.nil? if !persons.nil? _ha = Array.new persons.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['persons'] = _ha end return _h end |
#to_json ⇒ Object
the json (string form) for this RelationshipQueryConnection
2313 2314 2315 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2313 def to_json to_jaxb_json_hash.to_json end |