Ruby 2.3.0 リファレンスマニュアル > ライブラリ一覧 > csvライブラリ > CSV::Rowクラス > fields
fields(*headers_and_or_indices) -> Array[permalink][rdoc]values_at(*headers_and_or_indices) -> Array与えられた引数に対応する値の配列を返します。
要素の探索に CSV::Row.field を使用しています。
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
row = table.first
row.values_at("a", 1, 2..3) # => ["1", "2", "3", nil]