class IssueExporting::BaseOutputter
Public Class Methods
new(options = {})
click to toggle source
# File lib/issue_exporter/outputter.rb, line 7 def initialize(options = {}) @options = options end
Public Instance Methods
write(response_text)
click to toggle source
# File lib/issue_exporter/outputter.rb, line 11 def write(response_text) end
Protected Instance Methods
default_filename()
click to toggle source
# File lib/issue_exporter/outputter.rb, line 19 def default_filename "issues.json" end
default_path()
click to toggle source
# File lib/issue_exporter/outputter.rb, line 15 def default_path Dir.pwd end
write_file(dir, text)
click to toggle source
# File lib/issue_exporter/outputter.rb, line 23 def write_file(dir, text) path = "#{dir}/#{default_filename}" File.open(path, 'w') { |f| f.write text } end