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

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

Overview

A FamilyTree relationship properties section.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#modifiedObject

The modified timestamp for this person.



2427
2428
2429
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2427

def modified
  @modified
end

Class Method Details

.from_json(o) ⇒ Object

constructs a RelationshipProperties from a (parsed) JSON hash



2447
2448
2449
2450
2451
2452
2453
2454
2455
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2447

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



2442
2443
2444
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2442

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

#to_jaxb_json_hashObject

the json hash for this RelationshipProperties



2430
2431
2432
2433
2434
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2430

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

#to_jsonObject

the json (string form) for this RelationshipProperties



2437
2438
2439
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 2437

def to_json
  to_jaxb_json_hash.to_json
end