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

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

Overview

Created by IntelliJ IDEA. User: kuehneds Date: Jan 28, 2010 Time: 2:49:26 PM To change this template use File | Settings | File Templates.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#genderObject

(no documentation provided)



1636
1637
1638
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1636

def gender
  @gender
end

#idObject

(no documentation provided)



1634
1635
1636
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1634

def id
  @id
end

Class Method Details

.from_json(o) ⇒ Object

constructs a RelationshipQueryPathNode from a (parsed) JSON hash



1658
1659
1660
1661
1662
1663
1664
1665
1666
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1658

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



1652
1653
1654
1655
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1652

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

#to_jaxb_json_hashObject

the json hash for this RelationshipQueryPathNode



1639
1640
1641
1642
1643
1644
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1639

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

#to_jsonObject

the json (string form) for this RelationshipQueryPathNode



1647
1648
1649
# File 'lib/ruby-fs-stack/enunciate/familytree.rb', line 1647

def to_json
  to_jaxb_json_hash.to_json
end