Class: Multimedia_obje_file_record

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

Overview

=GEDCOM 5.5.1 Almost the same structure inline in OBJE record. Note TITL subordinate to FILE, rather than at same level. TYPE used, where MEDI used in Link version. =MULTIMEDIA_RECORD:= 0 @XREF:OBJE@ OBJE 0:M +1 FILE <MULTIMEDIA_FILE_REFN> 1:M New in 5.5.1 +2 FORM <MULTIMEDIA_FORMAT> 1:1 Was as level 1 in GEDCOM 5.5 +3 TYPE <SOURCE_MEDIA_TYPE> 0:1 New in 5.5.1 +2 TITL <DESCRIPTIVE_TITLE> 0:1 Was as level 1 in GEDCOM 5.5 .…

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.



61
62
63
# File 'lib/gedcom/multimedia_file_record.rb', line 61

def filename
  @filename
end

#multimedia_obje_format_recordObject

Returns the value of attribute multimedia_obje_format_record.



61
62
63
# File 'lib/gedcom/multimedia_file_record.rb', line 61

def multimedia_obje_format_record
  @multimedia_obje_format_record
end

#note_citation_recordObject

for user defined tags



63
64
65
# File 'lib/gedcom/multimedia_file_record.rb', line 63

def note_citation_record
  @note_citation_record
end

#titleObject

Level above in the link version



62
63
64
# File 'lib/gedcom/multimedia_file_record.rb', line 62

def title
  @title
end

Instance Method Details

#to_gedcom(level = 0) ⇒ Object



67
68
69
70
71
72
73
74
75
76
77
# File 'lib/gedcom/multimedia_file_record.rb', line 67

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