Class: QiitaExport::Exporter

Inherits:
Object
  • Object
show all
Defined in:
lib/qiita-export/exporter.rb

Instance Method Summary collapse

Constructor Details

#initializeExporter

Returns a new instance of Exporter.



6
7
# File 'lib/qiita-export/exporter.rb', line 6

def initialize
end

Instance Method Details

#exportObject



9
10
11
12
13
14
15
16
17
# File 'lib/qiita-export/exporter.rb', line 9

def export
  fetcher = create_fetcher
  articles = fetcher.find_articles
  if (Config.file_export?)
    export_file(articles)
  else
    export_console(articles)
  end
end