Class: Org::Familysearch::Ws::Familytree::V2::Schema::SearchMatchParameters
- Inherits:
-
Object
- Object
- Org::Familysearch::Ws::Familytree::V2::Schema::SearchMatchParameters
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
User: mullinstw Date: Mar 31, 2009 Time: 12:32:26 PM
Instance Attribute Summary collapse
-
#parameters ⇒ Object
parameters.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a SearchMatchParameters from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this SearchMatchParameters with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this SearchMatchParameters.
-
#to_json ⇒ Object
the json (string form) for this SearchMatchParameters.
Instance Attribute Details
#parameters ⇒ Object
parameters
1772 1773 1774 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1772 def parameters @parameters end |
Class Method Details
.from_json(o) ⇒ Object
constructs a SearchMatchParameters from a (parsed) JSON hash
1800 1801 1802 1803 1804 1805 1806 1807 1808 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1800 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 SearchMatchParameters with a json hash
1791 1792 1793 1794 1795 1796 1797 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1791 def init_jaxb_json_hash(_o) if !_o['parameter'].nil? @parameters = Array.new _oa = _o['parameter'] _oa.each { | _item | @parameters.push Org::Familysearch::Ws::Familytree::V2::Schema::SearchMatchParameter.from_json(_item) } end end |
#to_jaxb_json_hash ⇒ Object
the json hash for this SearchMatchParameters
1775 1776 1777 1778 1779 1780 1781 1782 1783 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1775 def to_jaxb_json_hash _h = {} if !parameters.nil? _ha = Array.new parameters.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['parameter'] = _ha end return _h end |
#to_json ⇒ Object
the json (string form) for this SearchMatchParameters
1786 1787 1788 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1786 def to_json to_jaxb_json_hash.to_json end |