Class: Swoop::CSVRenderer

Inherits:
Renderer show all
Defined in:
lib/swoop/renderer/csv_renderer.rb

Instance Attribute Summary

Attributes inherited from Renderer

#reports, #title

Instance Method Summary collapse

Methods inherited from Renderer

#initialize

Constructor Details

This class inherits a constructor from Swoop::Renderer

Instance Method Details

#renderObject



7
8
9
10
# File 'lib/swoop/renderer/csv_renderer.rb', line 7

def render
  File.write(filename, csv)
  puts "CSV file successfully created at '#{filename}'" if File.file?(filename)
end