Class: Org::Familysearch::Ws::Familytree::V2::Schema::EntityVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-fs-stack/enunciate/familytree.rb

Overview

A Family Tree entity version.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

The id of the person.



484
485
486
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 484

def id
  @id
end

#requestedIdObject

The requested id of the person.



486
487
488
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 486

def requestedId
  @requestedId
end

#versionObject

The version number for this person.



488
489
490
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 488

def version
  @version
end

Class Method Details

.from_json(o) ⇒ Object

constructs a EntityVersion from a (parsed) JSON hash



512
513
514
515
516
517
518
519
520
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 512

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 EntityVersion with a json hash



505
506
507
508
509
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 505

def init_jaxb_json_hash(_o)
  @id = String.from_json(_o['id']) unless _o['id'].nil?
  @requestedId = String.from_json(_o['requestedId']) unless _o['requestedId'].nil?
  @version = String.from_json(_o['version']) unless _o['version'].nil?
end

#to_jaxb_json_hashObject

the json hash for this EntityVersion



491
492
493
494
495
496
497
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 491

def to_jaxb_json_hash
  _h = {}
  _h['id'] = id.to_jaxb_json_hash unless id.nil?
  _h['requestedId'] = requestedId.to_jaxb_json_hash unless requestedId.nil?
  _h['version'] = version.to_jaxb_json_hash unless version.nil?
  return _h
end

#to_jsonObject

the json (string form) for this EntityVersion



500
501
502
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 500

def to_json
  to_jaxb_json_hash.to_json
end