Class: Event_age_record
- Inherits:
-
GEDCOMBase
- Object
- GEDCOMBase
- Event_age_record
- Defined in:
- lib/gedcom/event_age_record.rb
Overview
HUSB and WIFE tags can have an AGE record associated with them.
=FAM_RECORD:= 0 @<XREF:FAM>@ FAM 0:M 1 <<FAMILY_EVENT_STRUCTURE>> 0:M n HUSB 0:1 +1 AGE <AGE_AT_EVENT> 1:1 **** n WIFE 0:1 +1 AGE <AGE_AT_EVENT> 1:1 **** …
I also recognise notes in this record, so I can handle user tags as notes. +1 <<NOTE_STRUCTURE>> 0:M
The attributes are all arrays for the level +1 tags/records. * Those ending in ref are GEDCOM XREF index keys * Those ending in record are array of classes of that type. * The remainder are arrays of attributes that could be present in this record.
Instance Attribute Summary collapse
-
#age ⇒ Object
Returns the value of attribute age.
-
#note_citation_record ⇒ Object
Returns the value of attribute note_citation_record.
-
#relation ⇒ Object
Returns the value of attribute relation.
Attributes inherited from GEDCOMBase
Instance Method Summary collapse
Methods inherited from GEDCOMBase
#changed, #changed?, #created?, #find, #initialize, #locked?, no_tabs, #private?, #save, tabs, #to_db, #to_s, #to_s_ordered, #to_s_r, #token_to_s, #xref_check
Constructor Details
This class inherits a constructor from GEDCOMBase
Instance Attribute Details
#age ⇒ Object
Returns the value of attribute age.
22 23 24 |
# File 'lib/gedcom/event_age_record.rb', line 22 def age @age end |
#note_citation_record ⇒ Object
Returns the value of attribute note_citation_record.
23 24 25 |
# File 'lib/gedcom/event_age_record.rb', line 23 def note_citation_record @note_citation_record end |
#relation ⇒ Object
Returns the value of attribute relation.
22 23 24 |
# File 'lib/gedcom/event_age_record.rb', line 22 def relation @relation end |
Instance Method Details
#to_gedcom(level = 0) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/gedcom/event_age_record.rb', line 27 def to_gedcom(level=0) @this_level = [ [:nodata, @relation[0], nil] ] #dynamic, so need to define after initialize method. @sub_level = [ #level + 1 [:print, "AGE", :age], [:walk, nil, :note_citation_record] ] super(level) end |