Class: ODDB::OdbaExporter::MCMLine

Inherits:
Line show all
Defined in:
ext/export/src/oddbdat.rb

Constant Summary

LENGTH =
7

Instance Method Summary (collapse)

Methods inherited from Line

#content, #empty?, #to_s

Constructor Details

- (MCMLine) initialize(fi_oid, line_nr, language, text)

A new instance of MCMLine



655
656
657
658
659
660
661
# File 'ext/export/src/oddbdat.rb', line 655

def initialize(fi_oid, line_nr, language, text)
  @fi_oid = fi_oid
  @line_nr = line_nr
  @language = language
  @text = text
  super
end

Instance Method Details

- (Object) structure



662
663
664
665
666
667
668
669
670
671
672
# File 'ext/export/src/oddbdat.rb', line 662

def structure
  {
    1  => '31',
    2  => @date,
    3  => @fi_oid,
    4  => @language.to_s[0,1].upcase,
    5  => @line_nr,
    6  => '4',
    7  => @text,
  }
end