Module: Exportable::ExportMethods::CsvExporter

Includes:
Utils
Included in:
Exportable::ExportMethods
Defined in:
lib/exportable/export_methods/csv_exporter.rb

Overview

Module to handle only CSV exporting

Defined Under Namespace

Classes: Exporter

Instance Method Summary collapse

Methods included from Utils

#get_export_options

Instance Method Details

#export_csv(options = {}) ⇒ Object



9
10
11
12
# File 'lib/exportable/export_methods/csv_exporter.rb', line 9

def export_csv(options = {})
  export_options = get_export_options(self, @options.merge(options))
  Exporter.new(self).export(export_options)
end