class FamilySearch::Gedcomx::GraphParents

Attributes

capr[RW]
graph[RW]

Public Class Methods

new(capr, graph) click to toggle source
# File lib/familysearch/gedcomx/graph_parents.rb, line 6
def initialize(capr, graph)
  # childAndParentsRelationship
  self.capr = capr
  self.graph = graph
end

Public Instance Methods

child() click to toggle source
# File lib/familysearch/gedcomx/graph_parents.rb, line 20
def child
  self.graph.person(self.capr.child.resourceId) if self.capr.child
end
father() click to toggle source
# File lib/familysearch/gedcomx/graph_parents.rb, line 12
def father
  self.graph.person(self.capr.father.resourceId) if self.capr.father
end
mother() click to toggle source
# File lib/familysearch/gedcomx/graph_parents.rb, line 16
def mother
  self.graph.person(self.capr.mother.resourceId) if self.capr.mother
end