Class: Terastream::Query::RecordsBuilder

Inherits:
BaseFormatter show all
Defined in:
lib/terastream/query/records_builder.rb

Instance Method Summary collapse

Methods inherited from BaseFormatter

#app, #initialize

Constructor Details

This class inherits a constructor from Terastream::Query::BaseFormatter

Instance Method Details

#callObject



6
7
8
9
10
11
12
# File 'lib/terastream/query/records_builder.rb', line 6

def call
  row_data = {}
  @app.headers.each_with_index do |header, index|
    row_data[header] = @app.record_set.getString(index + 1)
  end
  Record.new(row_data)
end