Class: Org::Familysearch::Ws::Familytree::V2::Schema::UserWard
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
The ward id.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a UserWard from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this UserWard with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this UserWard.
-
#to_json ⇒ Object
the json (string form) for this UserWard.
Instance Attribute Details
#id ⇒ Object
The ward id.
4636 4637 4638 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4636 def id @id end |
Class Method Details
.from_json(o) ⇒ Object
constructs a UserWard from a (parsed) JSON hash
4656 4657 4658 4659 4660 4661 4662 4663 4664 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4656 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 UserWard with a json hash
4651 4652 4653 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4651 def init_jaxb_json_hash(_o) @id = String.from_json(_o['id']) unless _o['id'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this UserWard
4639 4640 4641 4642 4643 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4639 def to_jaxb_json_hash _h = {} _h['id'] = id.to_jaxb_json_hash unless id.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this UserWard
4646 4647 4648 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4646 def to_json to_jaxb_json_hash.to_json end |