Class: BAMFCSV::Table::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/bamfcsv/table.rb

Instance Method Summary collapse

Constructor Details

#initialize(header_map, values) ⇒ Row

Returns a new instance of Row.



36
37
38
39
# File 'lib/bamfcsv/table.rb', line 36

def initialize(header_map, values)
  @header_map = header_map
  @values = values
end

Instance Method Details

#[](key) ⇒ Object



41
42
43
# File 'lib/bamfcsv/table.rb', line 41

def [](key)
  @values[@header_map[key]]
end