Class: IssueExporting::FileOutputter

Inherits:
BaseOutputter show all
Defined in:
lib/issue_exporter/outputter.rb

Instance Method Summary collapse

Methods inherited from BaseOutputter

#initialize

Constructor Details

This class inherits a constructor from IssueExporting::BaseOutputter

Instance Method Details

#write(response_text) ⇒ Object



53
54
55
56
57
58
59
60
# File 'lib/issue_exporter/outputter.rb', line 53

def write(response_text)
  path = @options[:path] || default_path
  if @options[:multiple_files]
    write_multi_file path, response_text
  else
    write_file path, response_text
  end
end