Class: Hedra::Exporter
- Inherits:
-
Object
- Object
- Hedra::Exporter
- Defined in:
- lib/hedra/exporter.rb
Instance Method Summary collapse
Instance Method Details
#export(results, format, output_file) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/hedra/exporter.rb', line 8 def export(results, format, output_file) case format when 'json' export_json(results, output_file) when 'csv' export_csv(results, output_file) when 'html' export_html(results, output_file) else raise Error, "Unsupported format: #{format}" end end |