Class: Submission_record

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

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, #to_s_ordered, #to_s_r, #token_to_s, #xref_check

Constructor Details

#initialize(*a) ⇒ Submission_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
48
49
50
51
52
# File 'lib/gedcom/submission_record.rb', line 39

def initialize(*a)
  super(*a)
  @this_level = [ [:xref, "SUBN", :submission_ref] ]
  @sub_level =  [ #level + 1
                  [:xref, "SUBM", :submitter_ref],
                  [:print, "FAMF",    :lds_family_file ],
                  [:print, "TEMP",    :lds_temple_code ],
                  [:print, "ANCE",    :generations_of_ancestor ],
                  [:print, "DESC",    :generations_of_descendant ],
                  [:print, "ORDI",    :process_ordinates ],
                  [:print, "RIN",    :automated_record_id ],
                  [:walk, nil,    :note_citation_record ],
                ]
end

Instance Attribute Details

#automated_record_idObject

Returns the value of attribute automated_record_id.



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

def automated_record_id
  @automated_record_id
end

#generations_of_ancestorObject

Returns the value of attribute generations_of_ancestor.



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

def generations_of_ancestor
  @generations_of_ancestor
end

#generations_of_descendantObject

Returns the value of attribute generations_of_descendant.



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

def generations_of_descendant
  @generations_of_descendant
end

#lds_family_fileObject

Returns the value of attribute lds_family_file.



32
33
34
# File 'lib/gedcom/submission_record.rb', line 32

def lds_family_file
  @lds_family_file
end

#lds_temple_codeObject

Returns the value of attribute lds_temple_code.



32
33
34
# File 'lib/gedcom/submission_record.rb', line 32

def lds_temple_code
  @lds_temple_code
end

#note_citation_recordObject

Returns the value of attribute note_citation_record.



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

def note_citation_record
  @note_citation_record
end

#process_ordinatesObject

Returns the value of attribute process_ordinates.



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

def process_ordinates
  @process_ordinates
end

#submission_refObject

Returns the value of attribute submission_ref.



32
33
34
# File 'lib/gedcom/submission_record.rb', line 32

def submission_ref
  @submission_ref
end

#submitter_refObject

Returns the value of attribute submitter_ref.



32
33
34
# File 'lib/gedcom/submission_record.rb', line 32

def submitter_ref
  @submitter_ref
end