Class: ODDB::OdbaExporter::MCMLine

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

Constant Summary collapse

LENGTH =
7

Instance Method Summary collapse

Methods inherited from Line

#content, #empty?, #to_s

Constructor Details

#initialize(fi_oid, line_nr, language, text) ⇒ MCMLine

Returns a new instance of MCMLine.



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

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

#structureObject



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

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