Class: IssueExporting::Importer
- Inherits:
-
Object
- Object
- IssueExporting::Importer
- Defined in:
- lib/issue_exporter/import.rb
Instance Method Summary collapse
- #import ⇒ Object
-
#initialize(files, owner, repo, token) ⇒ Importer
constructor
A new instance of Importer.
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
#import ⇒ Object
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 |