Class: BerkeleyLibrary::TIND::Export::CSVExporter
- Defined in:
- lib/berkeley_library/tind/export/csv_exporter.rb
Overview
Exporter for CSV (comma-separated value) text
Instance Attribute Summary
Attributes inherited from Exporter
Instance Method Summary collapse
-
#export(out = nil) ⇒ Object
Exports ExportBase#collection as CSV.
Methods inherited from Exporter
#any_results?, #export_table, #initialize, #respond_to?
Constructor Details
This class inherits a constructor from BerkeleyLibrary::TIND::Export::Exporter
Instance Method Details
#export ⇒ String #export(out) ⇒ Object #export(path) ⇒ Object
Exports ExportBase#collection as CSV
21 22 23 24 |
# File 'lib/berkeley_library/tind/export/csv_exporter.rb', line 21 def export(out = nil) # noinspection RubyYardReturnMatch export_table.tap { logger.info('Writing CSV') }.to_csv(out) end |