Class: Gitlab::GithubImport::Importer::IssueAndLabelLinksImporter
- Inherits:
-
Object
- Object
- Gitlab::GithubImport::Importer::IssueAndLabelLinksImporter
- Defined in:
- lib/gitlab/github_import/importer/issue_and_label_links_importer.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#issue ⇒ Object
readonly
Returns the value of attribute issue.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(issue, project, client) ⇒ IssueAndLabelLinksImporter
constructor
issue - An instance of ‘Gitlab::GithubImport::Representation::Issue`.
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
#client ⇒ Object (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 |
#issue ⇒ Object (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 |
#project ⇒ Object (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
#execute ⇒ Object
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 |