Class: Encoded_line_record

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

Overview

An inline Multimedia_record uses BLOB records to hold the data. This is unusual in practice, as it bloats the GEDCOM file. Normal practice is to reference a file or URL.

=BLOB BINARY_OBJECT:= A grouping of data used as input to a multimedia system that processes binary data to represent images, sound, and video.

=MULTIMEDIA_RECORD:= 0 @XREF:OBJE@ OBJE 0:M … n BLOB 1:1 +1 CONT <ENCODED_MULTIMEDIA_LINE> 1: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

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) ⇒ Encoded_line_record

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



28
29
30
31
32
# File 'lib/gedcom/encoded_line_record.rb', line 28

def initialize(*a)
  super(*a)
  @this_level = [ [:nodata, "BLOB",    nil ] ]
  @sub_level =  [ [:blob, "CONT",    :encoded_line ] ]
end

Instance Attribute Details

#encoded_lineObject

Returns the value of attribute encoded_line.



23
24
25
# File 'lib/gedcom/encoded_line_record.rb', line 23

def encoded_line
  @encoded_line
end