Class: Impex::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/impex/row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(columns = {}, file_config = {}) ⇒ Row

Returns a new instance of Row.



5
6
7
8
# File 'lib/impex/row.rb', line 5

def initialize(columns = {}, file_config = {})
  @columns = columns
  @table   = file_config[:table]
end

Instance Attribute Details

#columnsObject (readonly)

Returns the value of attribute columns.



3
4
5
# File 'lib/impex/row.rb', line 3

def columns
  @columns
end

#tableObject (readonly)

Returns the value of attribute table.



3
4
5
# File 'lib/impex/row.rb', line 3

def table
  @table
end