Class: Multimedia_file_record

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

Overview

=GEDCOM 5.5.1 =MULTIMEDIA_LINK:= n OBJE <XREF> 1:1 is a reference to level 0 multimedia record. | n OBJE 1:1 is inline reference to an external file, rather than multimedia record. +1 FILE <MULTIMEDIA_FILE_REFN> 1:M Now 1:M in 5.5.1, was 1:1 in 5.5 +2 FORM <MULTIMEDIA_FORMAT> 1:1 Was as level 1 in GEDCOM 5.5 +3 MEDI <SOURCE_MEDIA_TYPE> 0:1 New in 5.5.1 +1 TITL <DESCRIPTIVE_TITLE> 0:1

No blobs in 5.5.1

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, #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

#filenameObject

Returns the value of attribute filename.



22
23
24
# File 'lib/gedcom/multimedia_file_record.rb', line 22

def filename
  @filename
end

#multimedia_format_recordObject

Returns the value of attribute multimedia_format_record.



22
23
24
# File 'lib/gedcom/multimedia_file_record.rb', line 22

def multimedia_format_record
  @multimedia_format_record
end

#note_citation_recordObject

attr_accessor :title #Level above in the link version



24
25
26
# File 'lib/gedcom/multimedia_file_record.rb', line 24

def note_citation_record
  @note_citation_record
end

Instance Method Details

#to_gedcom(level = 0) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/gedcom/multimedia_file_record.rb', line 28

def to_gedcom(level=0)
  
  @this_level =  [ [:print, "FILE", :filename]]
  @sub_level =  [#level 1
                  #[:print, "TITL",    :title ],                 #For OBJE record version
                  [:walk, nil,    :multimedia_format_record ],  # "FORM" 
                  [:walk, nil,    :note_citation_record ],      #for user defined tags
                ]
  
  super(level)
end