Class: Gitlab::ImportFormatter
- Inherits:
-
Object
- Object
- Gitlab::ImportFormatter
- Defined in:
- lib/gitlab/import_formatter.rb
Instance Method Summary collapse
- #assignee_line(assignee) ⇒ Object
- #author_line(author) ⇒ Object
- #comment(author, date, body) ⇒ Object
- #comments_header ⇒ Object
Instance Method Details
#assignee_line(assignee) ⇒ Object
18 19 20 21 |
# File 'lib/gitlab/import_formatter.rb', line 18 def assignee_line(assignee) assignee ||= "Anonymous" "*Assigned to: #{assignee}*\n\n" end |
#author_line(author) ⇒ Object
13 14 15 16 |
# File 'lib/gitlab/import_formatter.rb', line 13 def () ||= "Anonymous" "*Created by: #{}*\n\n" end |
#comment(author, date, body) ⇒ Object
5 6 7 |
# File 'lib/gitlab/import_formatter.rb', line 5 def comment(, date, body) "\n\n*By #{} on #{date}*\n\n#{body}" end |
#comments_header ⇒ Object
9 10 11 |
# File 'lib/gitlab/import_formatter.rb', line 9 def comments_header "\n\n\n**Imported comments:**\n" end |