Class: ODDB::OdbaExporter::GalenicFormLine

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

- (GalenicFormLine) initialize(galenic_form)

A new instance of GalenicFormLine



589
590
591
592
# File 'ext/export/src/oddbdat.rb', line 589

def initialize(galenic_form)
  @galenic_form = galenic_form
  super
end

Instance Method Details

- (Object) structure



593
594
595
596
597
598
599
600
601
602
603
# File 'ext/export/src/oddbdat.rb', line 593

def structure
  {
    1    =>  '11',
    2    =>  @date,
    3    =>  '5',
    4    =>  @galenic_form.oid,
    5    =>  'D',
    6    =>  '4',
    7    =>  @galenic_form.to_s,
  }
end