Sha256: 058f7b80ba7fa43103d0158ca24f1303abdde3d04279f8d8e9540c2cdb80f5f3

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 Bytes

Contents

module Org::Familysearch::Ws::Familytree::V2::Schema
    
  class SearchPerson
    alias :name :full_name
    alias :ref :id
    def events
      (assertions && assertions.events) ? assertions.events : []
    end
    
    # Always will return nil. Method is here for v1 backwards compatibility
    def marriage
      nil
    end
  end
  
  class SearchResult
    alias :ref :id
    
    def father
      parents.find{|p|p.gender == 'Male'}
    end
    
    def mother
      parents.find{|p|p.gender == 'Female'}
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-fs-stack-0.5.3 lib/ruby-fs-stack/familytree/search.rb
ruby-fs-stack-0.5.2 lib/ruby-fs-stack/familytree/search.rb
ruby-fs-stack-0.5.1 lib/ruby-fs-stack/familytree/search.rb
ruby-fs-stack-0.5.0 lib/ruby-fs-stack/familytree/search.rb