Class: ODDB::OdbaExporter::AtcLine

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

Constant Summary collapse

LENGTH =
9

Instance Method Summary collapse

Methods inherited from Line

#content, #empty?, #to_s

Constructor Details

#initialize(atcclass) ⇒ AtcLine

Returns a new instance of AtcLine.



527
528
529
530
# File 'ext/export/src/oddbdat.rb', line 527

def initialize(atcclass)
	@atcclass = atcclass
	super
end

Instance Method Details

#structureObject



531
532
533
534
535
536
537
538
539
540
541
542
# File 'ext/export/src/oddbdat.rb', line 531

def structure
	return if @atcclass.nil?
	{
		1		=>	'11',
		2		=>	@date,
		3		=>	'8',
		4		=>	@atcclass.code,
		5		=>	'D',
		6		=>	'4',
		7		=>	@atcclass.description,
	}
end