Class: BAMFCSV::Table::Row
- Inherits:
-
Object
- Object
- BAMFCSV::Table::Row
- Defined in:
- lib/bamfcsv/table.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(header_map, values) ⇒ Row
constructor
A new instance of Row.
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 |