Class: IssueExporting::Importer

Inherits:
Object
  • Object
show all
Defined in:
lib/issue_exporter/import.rb

Instance Method Summary collapse

Constructor Details

#initialize(files, owner, repo, token) ⇒ Importer

Returns a new instance of Importer.



6
7
8
9
10
11
# File 'lib/issue_exporter/import.rb', line 6

def initialize(files, owner, repo, token)
  @files = files
  @owner = owner
  @repo = repo
  @token = token
end

Instance Method Details

#importObject



13
14
15
16
17
18
# File 'lib/issue_exporter/import.rb', line 13

def import
  @files.each do |file|
    file_contents = read_file file
    import_json(file_contents) unless file_contents.nil?
  end
end