Class: Org::Familysearch::Ws::Familytree::V2::Schema::Discussion
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A discussion about a person.
Instance Attribute Summary collapse
-
#action ⇒ Object
The action to perform on the discussion.
-
#uri ⇒ Object
The URI to the discussion.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a Discussion from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this Discussion with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this Discussion.
-
#to_json ⇒ Object
the json (string form) for this Discussion.
Instance Attribute Details
#action ⇒ Object
The action to perform on the discussion.
421 422 423 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 421 def action @action end |
#uri ⇒ Object
The URI to the discussion.
423 424 425 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 423 def uri @uri end |
Class Method Details
.from_json(o) ⇒ Object
constructs a Discussion from a (parsed) JSON hash
445 446 447 448 449 450 451 452 453 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 445 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 Discussion with a json hash
439 440 441 442 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 439 def init_jaxb_json_hash(_o) @action = String.from_json(_o['action']) unless _o['action'].nil? @uri = String.from_json(_o['uri']) unless _o['uri'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this Discussion
426 427 428 429 430 431 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 426 def to_jaxb_json_hash _h = {} _h['action'] = action.to_jaxb_json_hash unless action.nil? _h['uri'] = uri.to_jaxb_json_hash unless uri.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this Discussion
434 435 436 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 434 def to_json to_jaxb_json_hash.to_json end |