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

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

The person id.



2072
2073
2074
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2072

def id
  @id
end

Class Method Details

.from_json(o) ⇒ Object

constructs a UserPerson from a (parsed) JSON hash



2092
2093
2094
2095
2096
2097
2098
2099
2100
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2092

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



2087
2088
2089
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2087

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

#to_jaxb_json_hashObject

the json hash for this UserPerson



2075
2076
2077
2078
2079
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2075

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

#to_jsonObject

the json (string form) for this UserPerson



2082
2083
2084
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2082

def to_json
  to_jaxb_json_hash.to_json
end