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

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

#citationsObject

The citations.



8554
8555
8556
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8554

def citations
  @citations
end

#contributorsObject

The contributors.



8548
8549
8550
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8548

def contributors
  @contributors
end

#deprecatedObject

(no documentation provided)



8528
8529
8530
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8528

def deprecated
  @deprecated
end

#matchesObject

The results of a match operation.



8546
8547
8548
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8546

def matches
  @matches
end

#notesObject

The notes.



8552
8553
8554
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8552

def notes
  @notes
end

#pedigreesObject

The pedigrees.



8550
8551
8552
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8550

def pedigrees
  @pedigrees
end

#personasObject

The personas.



8538
8539
8540
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8538

def personas
  @personas
end

#personsObject

The persons.



8534
8535
8536
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8534

def persons
  @persons
end

#propertiesObject

The properties.



8540
8541
8542
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8540

def properties
  @properties
end

#relationshipQueriesObject

The relationship queries.



8556
8557
8558
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8556

def relationshipQueries
  @relationshipQueries
end

#searchesObject

The results of a search.



8544
8545
8546
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8544

def searches
  @searches
end

#statusObject

The status list.



8536
8537
8538
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8536

def status
  @status
end

#statusCodeObject

(no documentation provided)



8526
8527
8528
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8526

def statusCode
  @statusCode
end

#statusMessageObject

(no documentation provided)



8530
8531
8532
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8530

def statusMessage
  @statusMessage
end

#usersObject

The users.



8542
8543
8544
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8542

def users
  @users
end

#versionObject

(no documentation provided)



8532
8533
8534
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8532

def version
  @version
end

#versionsObject

The entity versions.



8558
8559
8560
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8558

def versions
  @versions
end

Class Method Details

.from_json(o) ⇒ Object

constructs a FamilyTree from a (parsed) JSON hash



8714
8715
8716
8717
8718
8719
8720
8721
8722
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8714

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



8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8641

def init_jaxb_json_hash(_o)
  @statusCode = Fixnum.from_json(_o['statusCode']) unless _o['statusCode'].nil?
  @deprecated = Boolean.from_json(_o['deprecated']) unless _o['deprecated'].nil?
  @statusMessage = String.from_json(_o['statusMessage']) unless _o['statusMessage'].nil?
  @version = String.from_json(_o['version']) unless _o['version'].nil?
  if !_o['persons'].nil?
    @persons = Array.new
    _oa = _o['persons']
    _oa.each { | _item | @persons.push Org::Familysearch::Ws::Familytree::V2::Schema::Person.from_json(_item) }
  end
  if !_o['status'].nil?
    @status = Array.new
    _oa = _o['status']
    _oa.each { | _item | @status.push Org::Familysearch::Ws::Familytree::V2::Schema::FamilyTreeStatus.from_json(_item) }
  end
  if !_o['personas'].nil?
    @personas = Array.new
    _oa = _o['personas']
    _oa.each { | _item | @personas.push Org::Familysearch::Ws::Familytree::V2::Schema::Person.from_json(_item) }
  end
  if !_o['properties'].nil?
    @properties = Array.new
    _oa = _o['properties']
    _oa.each { | _item | @properties.push Org::Familysearch::Ws::Familytree::V2::Schema::FamilyTreeProperty.from_json(_item) }
  end
  if !_o['users'].nil?
    @users = Array.new
    _oa = _o['users']
    _oa.each { | _item | @users.push Org::Familysearch::Ws::Familytree::V2::Schema::User.from_json(_item) }
  end
  if !_o['searches'].nil?
    @searches = Array.new
    _oa = _o['searches']
    _oa.each { | _item | @searches.push Org::Familysearch::Ws::Familytree::V2::Schema::SearchResults.from_json(_item) }
  end
  if !_o['matches'].nil?
    @matches = Array.new
    _oa = _o['matches']
    _oa.each { | _item | @matches.push Org::Familysearch::Ws::Familytree::V2::Schema::MatchResults.from_json(_item) }
  end
  if !_o['contributors'].nil?
    @contributors = Array.new
    _oa = _o['contributors']
    _oa.each { | _item | @contributors.push Org::Familysearch::Ws::Familytree::V2::Schema::Contributor.from_json(_item) }
  end
  if !_o['pedigrees'].nil?
    @pedigrees = Array.new
    _oa = _o['pedigrees']
    _oa.each { | _item | @pedigrees.push Org::Familysearch::Ws::Familytree::V2::Schema::Pedigree.from_json(_item) }
  end
  if !_o['notes'].nil?
    @notes = Array.new
    _oa = _o['notes']
    _oa.each { | _item | @notes.push Org::Familysearch::Ws::Familytree::V2::Schema::Note.from_json(_item) }
  end
  if !_o['citations'].nil?
    @citations = Array.new
    _oa = _o['citations']
    _oa.each { | _item | @citations.push Org::Familysearch::Ws::Familytree::V2::Schema::Citation.from_json(_item) }
  end
  if !_o['relationships'].nil?
    @relationshipQueries = Array.new
    _oa = _o['relationships']
    _oa.each { | _item | @relationshipQueries.push Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQuery.from_json(_item) }
  end
  if !_o['versions'].nil?
    @versions = Array.new
    _oa = _o['versions']
    _oa.each { | _item | @versions.push Org::Familysearch::Ws::Familytree::V2::Schema::EntityVersion.from_json(_item) }
  end
end

#to_jaxb_json_hashObject

the json hash for this FamilyTree



8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8561

def to_jaxb_json_hash
  _h = {}
  _h['statusCode'] = statusCode.to_jaxb_json_hash unless statusCode.nil?
  _h['deprecated'] = deprecated.to_jaxb_json_hash unless deprecated.nil?
  _h['statusMessage'] = statusMessage.to_jaxb_json_hash unless statusMessage.nil?
  _h['version'] = version.to_jaxb_json_hash unless version.nil?
  if !persons.nil?
    _ha = Array.new
    persons.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['persons'] = _ha
  end
  if !status.nil?
    _ha = Array.new
    status.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['status'] = _ha
  end
  if !personas.nil?
    _ha = Array.new
    personas.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['personas'] = _ha
  end
  if !properties.nil?
    _ha = Array.new
    properties.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['properties'] = _ha
  end
  if !users.nil?
    _ha = Array.new
    users.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['users'] = _ha
  end
  if !searches.nil?
    _ha = Array.new
    searches.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['searches'] = _ha
  end
  if !matches.nil?
    _ha = Array.new
    matches.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['matches'] = _ha
  end
  if !contributors.nil?
    _ha = Array.new
    contributors.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['contributors'] = _ha
  end
  if !pedigrees.nil?
    _ha = Array.new
    pedigrees.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['pedigrees'] = _ha
  end
  if !notes.nil?
    _ha = Array.new
    notes.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['notes'] = _ha
  end
  if !citations.nil?
    _ha = Array.new
    citations.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['citations'] = _ha
  end
  if !relationshipQueries.nil?
    _ha = Array.new
    relationshipQueries.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['relationships'] = _ha
  end
  if !versions.nil?
    _ha = Array.new
    versions.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['versions'] = _ha
  end
  return _h
end

#to_jsonObject

the json (string form) for this FamilyTree



8636
8637
8638
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 8636

def to_json
  to_jaxb_json_hash.to_json
end