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

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

Overview

A Family Tree relationship query.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connectionsObject

(no documentation provided)



1561
1562
1563
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1561

def connections
  @connections
end

#errorObject

(no documentation provided)



1559
1560
1561
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1559

def error
  @error
end

#idObject

The id of the relationship query.



1555
1556
1557
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1555

def id
  @id
end

#requestedIdObject

The id of the relationship query.



1557
1558
1559
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1557

def requestedId
  @requestedId
end

Class Method Details

.from_json(o) ⇒ Object

constructs a RelationshipQuery from a (parsed) JSON hash



1595
1596
1597
1598
1599
1600
1601
1602
1603
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1595

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



1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1583

def init_jaxb_json_hash(_o)
  @id = String.from_json(_o['id']) unless _o['id'].nil?
  @requestedId = String.from_json(_o['requestedId']) unless _o['requestedId'].nil?
  @error = String.from_json(_o['error']) unless _o['error'].nil?
  if !_o['connections'].nil?
    @connections = Array.new
    _oa = _o['connections']
    _oa.each { | _item | @connections.push Org::Familysearch::Ws::Familytree::V2::Schema::RelationshipQueryConnection.from_json(_item) }
  end
end

#to_jaxb_json_hashObject

the json hash for this RelationshipQuery



1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1564

def to_jaxb_json_hash
  _h = {}
  _h['id'] = id.to_jaxb_json_hash unless id.nil?
  _h['requestedId'] = requestedId.to_jaxb_json_hash unless requestedId.nil?
  _h['error'] = error.to_jaxb_json_hash unless error.nil?
  if !connections.nil?
    _ha = Array.new
    connections.each { | _item | _ha.push _item.to_jaxb_json_hash }
    _h['connections'] = _ha
  end
  return _h
end

#to_jsonObject

the json (string form) for this RelationshipQuery



1578
1579
1580
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1578

def to_json
  to_jaxb_json_hash.to_json
end