class Gitlab::Release::Changelog::Entry
This class represents a single changelog element.
Attributes
id[R]
title[R]
Public Class Methods
new(id, title)
click to toggle source
@param [Integer] id @param [String] title
# File lib/gitlab/release/changelog/entry.rb, line 12 def initialize(id, title) @id = id @title = title end
Public Instance Methods
to_s()
click to toggle source
# File lib/gitlab/release/changelog/entry.rb, line 17 def to_s "Changelog::Entry { id: #{id}, title: '#{title}' }" end
to_s_for_changelog(with_reference)
click to toggle source
Print this entry with or without reference.
@param [Boolean] with_reference Required. Generate the changelog with MRs and Issues reference. @return [String]
# File lib/gitlab/release/changelog/entry.rb, line 27 def to_s_for_changelog(with_reference) "- #{title}" end