Class: DataList

Inherits:
Object
  • Object
show all
Defined in:
app/models/data_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(batch, data_fields_hash, klass) ⇒ DataList

Returns a new instance of DataList.


4
5
6
7
8
# File 'app/models/data_list.rb', line 4

def initialize(batch, data_fields_hash, klass)
  @batch = batch
  @data_fields_hash = data_fields_hash
  @klass = klass
end

Instance Method Details

#to_arrayObject


10
11
12
# File 'app/models/data_list.rb', line 10

def to_array
  [klass, columns, values]
end