Class: Org::Familysearch::Ws::Familytree::V2::Schema::UserTerms
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
(no documentation provided).
-
#version ⇒ Object
(no documentation provided).
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a UserTerms from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this UserTerms with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this UserTerms.
-
#to_json ⇒ Object
the json (string form) for this UserTerms.
Instance Attribute Details
#date ⇒ Object
(no documentation provided)
4512 4513 4514 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4512 def date @date end |
#version ⇒ Object
(no documentation provided)
4510 4511 4512 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4510 def version @version end |
Class Method Details
.from_json(o) ⇒ Object
constructs a UserTerms from a (parsed) JSON hash
4534 4535 4536 4537 4538 4539 4540 4541 4542 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4534 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 UserTerms with a json hash
4528 4529 4530 4531 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4528 def init_jaxb_json_hash(_o) @version = String.from_json(_o['version']) unless _o['version'].nil? @date = Time.from_json(_o['date']) unless _o['date'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this UserTerms
4515 4516 4517 4518 4519 4520 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4515 def to_jaxb_json_hash _h = {} _h['version'] = version.to_jaxb_json_hash unless version.nil? _h['date'] = date.to_jaxb_json_hash unless date.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this UserTerms
4523 4524 4525 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 4523 def to_json to_jaxb_json_hash.to_json end |