Sha256: 2aa0f5713da148a7e181eb0d8bb3db7980aef4302c657f454afc93d0b76d379e

Contents?: true

Size: 594 Bytes

Versions: 3

Compression:

Stored size: 594 Bytes

Contents

module FamilySearch
  module Gedcomx
    class GraphParents
      attr_accessor :capr
      attr_accessor :graph
      def initialize(capr, graph)
        # childAndParentsRelationship
        self.capr = capr
        self.graph = graph
      end      
      
      def father
        self.graph.person(self.capr.father.resourceId) if self.capr.father
      end
      
      def mother
        self.graph.person(self.capr.mother.resourceId) if self.capr.mother
      end
      
      def child
        self.graph.person(self.capr.child.resourceId) if self.capr.child
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
familysearch-gedcomx-1.0.2 lib/familysearch/gedcomx/graph_parents.rb
familysearch-gedcomx-1.0.1 lib/familysearch/gedcomx/graph_parents.rb
familysearch-gedcomx-1.0.0 lib/familysearch/gedcomx/graph_parents.rb