Class: Spout::Commands::Exporter

Inherits:
Object
  • Object
show all
Defined in:
lib/spout/commands/exporter.rb

Overview

Exports the JSON data dictionary to a CSV format.

Instance Method Summary collapse

Constructor Details

#initialize(standard_version, argv) ⇒ Exporter

Returns a new instance of Exporter.



13
14
15
16
17
18
# File 'lib/spout/commands/exporter.rb', line 13

def initialize(standard_version, argv)
  @quiet = !argv.delete("--quiet").nil?
  @standard_version = standard_version
  @config = Spout::Helpers::ConfigReader.new
  expanded_export!
end