Class: TableMaker

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

Instance Method Summary collapse

Constructor Details

#initialize(db, table_name, layout) ⇒ TableMaker

Returns a new instance of TableMaker.



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/table_maker.rb', line 4

def initialize(db, table_name, layout)
  @db = db
  @table_name = table_name.to_sym
  @column_info = []
  @column_names = []
  @data = []
  @has_primary_key = false
  parse_layout(layout)
  create_table
  import_data
end