Class: Gitlab::GithubImport::BaseFormatter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project, raw_data) ⇒ BaseFormatter

Returns a new instance of BaseFormatter


6
7
8
9
10
# File 'lib/gitlab/github_import/base_formatter.rb', line 6

def initialize(project, raw_data)
  @project = project
  @raw_data = raw_data
  @formatter = Gitlab::ImportFormatter.new
end

Instance Attribute Details

#formatterObject (readonly)

Returns the value of attribute formatter


4
5
6
# File 'lib/gitlab/github_import/base_formatter.rb', line 4

def formatter
  @formatter
end

#projectObject (readonly)

Returns the value of attribute project


4
5
6
# File 'lib/gitlab/github_import/base_formatter.rb', line 4

def project
  @project
end

#raw_dataObject (readonly)

Returns the value of attribute raw_data


4
5
6
# File 'lib/gitlab/github_import/base_formatter.rb', line 4

def raw_data
  @raw_data
end