Class: Gitlab::LegacyGithubImport::IssuableFormatter

Inherits:
BaseFormatter
  • Object
show all
Defined in:
lib/gitlab/legacy_github_import/issuable_formatter.rb

Direct Known Subclasses

IssueFormatter, PullRequestFormatter

Instance Attribute Summary collapse

Attributes inherited from BaseFormatter

#client, #formatter, #project, #raw_data

Instance Method Summary collapse

Methods inherited from BaseFormatter

#create!, #initialize, #url

Constructor Details

This class inherits a constructor from Gitlab::LegacyGithubImport::BaseFormatter

Instance Attribute Details

#assignee_id=(value) ⇒ Object

Sets the attribute assignee_id

Parameters:

  • value

    the value to set the attribute assignee_id to.



6
7
8
# File 'lib/gitlab/legacy_github_import/issuable_formatter.rb', line 6

def assignee_id=(value)
  @assignee_id = value
end

#author_id=(value) ⇒ Object

Sets the attribute author_id

Parameters:

  • value

    the value to set the attribute author_id to.



6
7
8
# File 'lib/gitlab/legacy_github_import/issuable_formatter.rb', line 6

def author_id=(value)
  @author_id = value
end

Instance Method Details

#find_conditionObject



16
17
18
# File 'lib/gitlab/legacy_github_import/issuable_formatter.rb', line 16

def find_condition
  { iid: number }
end

#numberObject



12
13
14
# File 'lib/gitlab/legacy_github_import/issuable_formatter.rb', line 12

def number
  raw_data[:number]
end

#project_associationObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/gitlab/legacy_github_import/issuable_formatter.rb', line 8

def project_association
  raise NotImplementedError
end