class FamilySearch::Gedcomx::Person

Public Instance Methods

birth() click to toggle source
# File lib/familysearch/gedcomx/data_model.rb, line 393
def birth
  facts.find{|f|f.type == "http://gedcomx.org/Birth"} if facts
end
burial() click to toggle source
# File lib/familysearch/gedcomx/data_model.rb, line 405
def burial
  facts.find{|f|f.type == "http://gedcomx.org/Burial"} if facts
end
christening() click to toggle source
# File lib/familysearch/gedcomx/data_model.rb, line 401
def christening
  facts.find{|f|f.type == "http://gedcomx.org/Christening"} if facts
end
death() click to toggle source
# File lib/familysearch/gedcomx/data_model.rb, line 397
def death
  facts.find{|f|f.type == "http://gedcomx.org/Death"} if facts
end
full_name() click to toggle source
# File lib/familysearch/gedcomx/data_model.rb, line 381
def full_name
  (name) ? name.fullText : ''
end
given_name() click to toggle source
# File lib/familysearch/gedcomx/data_model.rb, line 389
def given_name
  (name) ? name.given_name : ''
end
name() click to toggle source

Returns the first name in the names array

# File lib/familysearch/gedcomx/data_model.rb, line 377
def name
  names[0] if names
end
surname() click to toggle source
# File lib/familysearch/gedcomx/data_model.rb, line 385
def surname
  (name) ? name.surname : ''
end