Class: Org::Familysearch::Ws::Familytree::V2::Schema::EntityReference
- Defined in:
- lib/ruby-fs-stack/enunciate/familytree.rb
Overview
A Family Tree entity reference.
Direct Known Subclasses
ContributorReference, PersonPersona, PersonReference, PersonaReference
Instance Attribute Summary collapse
-
#current ⇒ Object
Is the entity associated with the currently authenticated user?.
-
#id ⇒ Object
The id of the entity.
-
#tempId ⇒ Object
The temp id of the entity.
-
#version ⇒ Object
The version number for this entity.
Class Method Summary collapse
-
.from_json(o) ⇒ Object
constructs a EntityReference from a (parsed) JSON hash.
Instance Method Summary collapse
-
#init_jaxb_json_hash(_o) ⇒ Object
initializes this EntityReference with a json hash.
-
#to_jaxb_json_hash ⇒ Object
the json hash for this EntityReference.
-
#to_json ⇒ Object
the json (string form) for this EntityReference.
Instance Attribute Details
#current ⇒ Object
Is the entity associated with the currently authenticated user?
3524 3525 3526 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3524 def current @current end |
#id ⇒ Object
The id of the entity.
3522 3523 3524 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3522 def id @id end |
#tempId ⇒ Object
The temp id of the entity.
3526 3527 3528 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3526 def tempId @tempId end |
#version ⇒ Object
The version number for this entity.
3528 3529 3530 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3528 def version @version end |
Class Method Details
.from_json(o) ⇒ Object
constructs a EntityReference from a (parsed) JSON hash
3554 3555 3556 3557 3558 3559 3560 3561 3562 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3554 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 EntityReference with a json hash
3546 3547 3548 3549 3550 3551 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3546 def init_jaxb_json_hash(_o) @id = String.from_json(_o['id']) unless _o['id'].nil? @current = Boolean.from_json(_o['current']) unless _o['current'].nil? @tempId = String.from_json(_o['tempId']) unless _o['tempId'].nil? @version = String.from_json(_o['version']) unless _o['version'].nil? end |
#to_jaxb_json_hash ⇒ Object
the json hash for this EntityReference
3531 3532 3533 3534 3535 3536 3537 3538 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3531 def to_jaxb_json_hash _h = {} _h['id'] = id.to_jaxb_json_hash unless id.nil? _h['current'] = current.to_jaxb_json_hash unless current.nil? _h['tempId'] = tempId.to_jaxb_json_hash unless tempId.nil? _h['version'] = version.to_jaxb_json_hash unless version.nil? return _h end |
#to_json ⇒ Object
the json (string form) for this EntityReference
3541 3542 3543 |
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3541 def to_json to_jaxb_json_hash.to_json end |