Class: Chronicle::ETL::TableLoader
- Inherits:
-
Loader
- Object
- Loader
- Chronicle::ETL::TableLoader
show all
- Defined in:
- lib/chronicle/etl/loaders/table_loader.rb
Instance Attribute Summary
#connector_registration
Instance Method Summary
collapse
Methods inherited from Loader
#initialize, #start
#register_connector
#force_utf8
included
Instance Method Details
#finish ⇒ Object
26
27
28
29
30
31
32
33
|
# File 'lib/chronicle/etl/loaders/table_loader.rb', line 26
def finish
return if records.empty?
= (records)
rows = build_rows(records, )
render_table(, rows)
end
|
#load(record) ⇒ Object
22
23
24
|
# File 'lib/chronicle/etl/loaders/table_loader.rb', line 22
def load(record)
records << record
end
|
#records ⇒ Object
35
36
37
|
# File 'lib/chronicle/etl/loaders/table_loader.rb', line 35
def records
@records ||= []
end
|