Class: ODDB::OdbaExporter::AtcLine

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

Constant Summary

LENGTH =
9

Instance Method Summary (collapse)

Methods inherited from Line

#content, #empty?, #to_s

Constructor Details

- (AtcLine) initialize(atcclass)

A new instance of AtcLine



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

def initialize(atcclass)
  @atcclass = atcclass
  super
end

Instance Method Details

- (Object) structure



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

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