Class: Org::Familysearch::Ws::Familytree::V2::Schema::Changes
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Instance Attribute Summary collapse
-
#changeList ⇒ Object
The changes.
-
#count ⇒ Object
The count of changes.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a Changes from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this Changes with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this Changes.
-
#to_json ⇒ Object
the json (string form) for this Changes.
Instance Attribute Details
#changeList ⇒ Object
The changes.
202 203 204 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 202 def changeList @changeList end |
#count ⇒ Object
The count of changes.
200 201 202 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 200 def count @count end |
Class Method Details
.from_json(o) ⇒ Object
constructs a Changes from a (parsed) JSON hash
232 233 234 235 236 237 238 239 240 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 232 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 Changes with a json hash
222 223 224 225 226 227 228 229 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 222 def init_jaxb_json_hash(_o) @count = Fixnum.from_json(_o['count']) unless _o['count'].nil? if !_o['change'].nil? @changeList = Array.new _oa = _o['change'] _oa.each { | _item | @changeList.push Org::Familysearch::Ws::Familytree::V2::Schema::Change.from_json(_item) } end end |
#to_jaxb_json_hash ⇒ Object
the json hash for this Changes
205 206 207 208 209 210 211 212 213 214 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 205 def to_jaxb_json_hash _h = {} _h['count'] = count.to_jaxb_json_hash unless count.nil? if !changeList.nil? _ha = Array.new changeList.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['change'] = _ha end return _h end |
#to_json ⇒ Object
the json (string form) for this Changes
217 218 219 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 217 def to_json to_jaxb_json_hash.to_json end |