Class: Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQueryPath
- Inherits:
-
Object
- Object
- Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQueryPath
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
Created by IntelliJ IDEA. User: kuehneds Date: Jan 27, 2010 Time: 1:11:29 PM To change this template use File | Settings | File Templates.
Instance Attribute Summary collapse
-
#nodes ⇒ Object
(no documentation provided).
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a RelationshipQueryPath from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this RelationshipQueryPath with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this RelationshipQueryPath.
-
#to_json ⇒ Object
the json (string form) for this RelationshipQueryPath.
Instance Attribute Details
#nodes ⇒ Object
(no documentation provided)
1942 1943 1944 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1942 def nodes @nodes end |
Class Method Details
.from_json(o) ⇒ Object
constructs a RelationshipQueryPath from a (parsed) JSON hash
1970 1971 1972 1973 1974 1975 1976 1977 1978 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1970 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 RelationshipQueryPath with a json hash
1961 1962 1963 1964 1965 1966 1967 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1961 def init_jaxb_json_hash(_o) if !_o['node'].nil? @nodes = Array.new _oa = _o['node'] _oa.each { | _item | @nodes.push Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQueryPathNode.from_json(_item) } end end |
#to_jaxb_json_hash ⇒ Object
the json hash for this RelationshipQueryPath
1945 1946 1947 1948 1949 1950 1951 1952 1953 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1945 def to_jaxb_json_hash _h = {} if !nodes.nil? _ha = Array.new nodes.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['node'] = _ha end return _h end |
#to_json ⇒ Object
the json (string form) for this RelationshipQueryPath
1956 1957 1958 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1956 def to_json to_jaxb_json_hash.to_json end |