Method: Biodiversity::Parser::GnParser::Csv#init_gnparser

Defined in:
lib/biodiversity/parser/gnparser.rb

#init_gnparserObject



134
135
136
137
138
139
# File 'lib/biodiversity/parser/gnparser.rb', line 134

def init_gnparser
  @csv_mapping = {}
  CSV.new(@stdout.gets).read[0].each.with_index do |header, index|
    @csv_mapping[header] = index
  end
end