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

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

Overview

A FamilyTree person properties section.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lifespanObject

the lifespan of the person.



2947
2948
2949
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2947

def lifespan
  @lifespan
end

#livingObject

The calculated living status for this person.



2937
2938
2939
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2937

def living
  @living
end

#modifiableObject

Is the person modifiable by the current user?



2941
2942
2943
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2941

def modifiable
  @modifiable
end

#modifiedObject

The modified timestamp for this person.



2939
2940
2941
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2939

def modified
  @modified
end

#multipleFamiliesAsChildObject

Is the person part of more than one family as the child?



2951
2952
2953
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2951

def multipleFamiliesAsChild
  @multipleFamiliesAsChild
end

#multipleFamiliesAsParentObject

Is the person part of more than one family as the parent?



2949
2950
2951
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2949

def multipleFamiliesAsParent
  @multipleFamiliesAsParent
end

#selectableObject

Is the person modifiable by the current user?



2943
2944
2945
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2943

def selectable
  @selectable
end

#watchableObject

Can changes to the person be watched?



2945
2946
2947
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2945

def watchable
  @watchable
end

Class Method Details

.from_json(o) ⇒ Object

constructs a PersonProperties from a (parsed) JSON hash



2985
2986
2987
2988
2989
2990
2991
2992
2993
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2985

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



2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2973

def init_jaxb_json_hash(_o)
  @living = Boolean.from_json(_o['living']) unless _o['living'].nil?
  @modified = Time.from_json(_o['modified']) unless _o['modified'].nil?
  @modifiable = Boolean.from_json(_o['modifiable']) unless _o['modifiable'].nil?
  @selectable = Boolean.from_json(_o['selectable']) unless _o['selectable'].nil?
  @watchable = Boolean.from_json(_o['watchable']) unless _o['watchable'].nil?
  @lifespan = Org::Familysearch::Ws::Familytree::V2::Schema::Lifespan.from_json(_o['lifespan']) unless _o['lifespan'].nil?
  @multipleFamiliesAsParent = Boolean.from_json(_o['multipleFamiliesAsParent']) unless _o['multipleFamiliesAsParent'].nil?
  @multipleFamiliesAsChild = Boolean.from_json(_o['multipleFamiliesAsChild']) unless _o['multipleFamiliesAsChild'].nil?
end

#to_jaxb_json_hashObject

the json hash for this PersonProperties



2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2954

def to_jaxb_json_hash
  _h = {}
  _h['living'] = living.to_jaxb_json_hash unless living.nil?
  _h['modified'] = modified.to_jaxb_json_hash unless modified.nil?
  _h['modifiable'] = modifiable.to_jaxb_json_hash unless modifiable.nil?
  _h['selectable'] = selectable.to_jaxb_json_hash unless selectable.nil?
  _h['watchable'] = watchable.to_jaxb_json_hash unless watchable.nil?
  _h['lifespan'] = lifespan.to_jaxb_json_hash unless lifespan.nil?
  _h['multipleFamiliesAsParent'] = multipleFamiliesAsParent.to_jaxb_json_hash unless multipleFamiliesAsParent.nil?
  _h['multipleFamiliesAsChild'] = multipleFamiliesAsChild.to_jaxb_json_hash unless multipleFamiliesAsChild.nil?
  return _h
end

#to_jsonObject

the json (string form) for this PersonProperties



2968
2969
2970
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2968

def to_json
  to_jaxb_json_hash.to_json
end