Class: Simplejson2csv::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/simplejson2csv/converter.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.optsObject

Returns the value of attribute opts.



7
8
9
# File 'lib/simplejson2csv/converter.rb', line 7

def opts
  @opts
end

Class Method Details

.convert(opts = {}) ⇒ Object



9
10
11
12
# File 'lib/simplejson2csv/converter.rb', line 9

def convert(opts={})
  @opts = opts
  save_to_csv
end