Class: Gitlab::GithubImport::CommentFormatter

Inherits:
BaseFormatter show all
Defined in:
lib/gitlab/github_import/comment_formatter.rb

Instance Attribute Summary

Attributes inherited from BaseFormatter

#formatter, #project, #raw_data

Instance Method Summary collapse

Methods inherited from BaseFormatter

#initialize

Constructor Details

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

Instance Method Details

#attributesObject


4
5
6
7
8
9
10
11
12
13
14
# File 'lib/gitlab/github_import/comment_formatter.rb', line 4

def attributes
  {
    project: project,
    note: note,
    commit_id: raw_data.commit_id,
    line_code: line_code,
    author_id: author_id,
    created_at: raw_data.created_at,
    updated_at: raw_data.updated_at
  }
end