Class: Org::Familysearch::Ws::Familytree::V2::Schema::MatchResult
- Inherits:
-
SearchResult
- Object
- SearchResult
- Org::Familysearch::Ws::Familytree::V2::Schema::MatchResult
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
The confidence of the match.
Attributes inherited from SearchResult
#children, #id, #parents, #person, #score, #spouses
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a MatchResult from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this MatchResult with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this MatchResult.
Methods inherited from SearchResult
Instance Attribute Details
#confidence ⇒ Object
The confidence of the match.
6120 6121 6122 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6120 def confidence @confidence end |
Class Method Details
.from_json(o) ⇒ Object
constructs a MatchResult from a (parsed) JSON hash
6136 6137 6138 6139 6140 6141 6142 6143 6144 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6136 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 MatchResult with a json hash
6130 6131 6132 6133 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6130 def init_jaxb_json_hash(_o) super _o @confidence = String.from_json(_o['confidence']) unless _o['confidence'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this MatchResult
6123 6124 6125 6126 6127 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 6123 def to_jaxb_json_hash _h = super _h['confidence'] = confidence.to_jaxb_json_hash unless confidence.nil? return _h end |