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

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

Overview

Authority normalized place.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

The place authority id.



3376
3377
3378
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3376

def id
  @id
end

#valueObject

The value.



3380
3381
3382
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3380

def value
  @value
end

#versionObject

The place authority version.



3378
3379
3380
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3378

def version
  @version
end

Class Method Details

.from_json(o) ⇒ Object

constructs a NormalizedPlace from a (parsed) JSON hash



3404
3405
3406
3407
3408
3409
3410
3411
3412
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3404

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



3397
3398
3399
3400
3401
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3397

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

#to_jaxb_json_hashObject

the json hash for this NormalizedPlace



3383
3384
3385
3386
3387
3388
3389
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3383

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

#to_jsonObject

the json (string form) for this NormalizedPlace



3392
3393
3394
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 3392

def to_json
  to_jaxb_json_hash.to_json
end