Class: Gitlab::GithubImport::Importer::IssueAndLabelLinksImporter

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/github_import/importer/issue_and_label_links_importer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(issue, project, client) ⇒ IssueAndLabelLinksImporter

issue - An instance of `Gitlab::GithubImport::Representation::Issue`. project - An instance of `Project` client - An instance of `Gitlab::GithubImport::Client`


12
13
14
15
16
# File 'lib/gitlab/github_import/importer/issue_and_label_links_importer.rb', line 12

def initialize(issue, project, client)
  @issue = issue
  @project = project
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client


7
8
9
# File 'lib/gitlab/github_import/importer/issue_and_label_links_importer.rb', line 7

def client
  @client
end

#issueObject (readonly)

Returns the value of attribute issue


7
8
9
# File 'lib/gitlab/github_import/importer/issue_and_label_links_importer.rb', line 7

def issue
  @issue
end

#projectObject (readonly)

Returns the value of attribute project


7
8
9
# File 'lib/gitlab/github_import/importer/issue_and_label_links_importer.rb', line 7

def project
  @project
end

Instance Method Details

#executeObject


18
19
20
21
# File 'lib/gitlab/github_import/importer/issue_and_label_links_importer.rb', line 18

def execute
  IssueImporter.import_if_issue(issue, project, client)
  LabelLinksImporter.new(issue, project, client).execute
end