Class: Citation_data_record

Inherits:
GEDCOMBase show all
Defined in:
lib/gedcom/citation_data_record.rb

Overview

Citation_data_record is DATA record in a Source_citation_record.

SOURCE_CITATION:= (within another record, referencing a SOURCE_RECORD)

-1 SOUR @<XREF:SOUR>@                        {1:1} (pointer to source record)
  ...
  n DATA                                     {0:1}
    +1 DATE <ENTRY_RECORDING_DATE>           {0:1}
    +1 TEXT <TEXT_FROM_SOURCE>               {0:M}
      +2 [ CONC | CONT ] <TEXT_FROM_SOURCE>  {0:M}
  ...

ENTRY_RECORDING_DATE:=

<DATE_VALUE>

The date that this event data was entered into the original source document.

TEXT_FROM_SOURCE:= Size=1:248

<TEXT>

A verbatim copy of any description contained within the source. This indicates notes or text that are
actually contained in the source document, not the submitter's opinion about the source. This should
be, from the evidence point of view, "what the original record keeper said" as opposed to the
researcher's interpretation. The word TEXT, in this case, means from the text which appeared in the
source record including labels.

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

Attributes inherited from GEDCOMBase

#restriction

Instance Method Summary collapse

Methods inherited from GEDCOMBase

#changed, #changed?, #created?, #find, #locked?, no_tabs, #private?, #save, tabs, #to_db, #to_gedcom, #to_s, #token_to_s

Constructor Details

#initialize(*a) ⇒ Citation_data_record

new sets up the state engine arrays @this_level and @sub_level, which drive the to_gedcom method generating GEDCOM output.



39
40
41
42
43
44
45
46
47
# File 'lib/gedcom/citation_data_record.rb', line 39

def initialize(*a)
  super(*a)
  @this_level = [ [:print, "DATA", nil ] ]
  @sub_level =  [ #level 1
                  [:walk, nil, :date_record],
                  [:walk, nil, :text_record ],
                  [:walk, nil, :note_citation_record ],
                ]
end

Instance Attribute Details

#date_recordObject

Returns the value of attribute date_record.



33
34
35
# File 'lib/gedcom/citation_data_record.rb', line 33

def date_record
  @date_record
end

#note_citation_recordObject

Returns the value of attribute note_citation_record.



34
35
36
# File 'lib/gedcom/citation_data_record.rb', line 34

def note_citation_record
  @note_citation_record
end

#text_recordObject

Returns the value of attribute text_record.



33
34
35
# File 'lib/gedcom/citation_data_record.rb', line 33

def text_record
  @text_record
end