Class: Gitlab::Git::Tag

Inherits:
Ref
  • Object
show all
Defined in:
lib/gitlab_git/tag.rb

Constant Summary

Constants included from EncodingHelper

EncodingHelper::ENCODING_CONFIDENCE_THRESHOLD

Instance Attribute Summary

Attributes inherited from Ref

#name, #target

Instance Method Summary collapse

Methods inherited from Ref

extract_branch_name

Methods included from EncodingHelper

#encode!, #encode_utf8

Constructor Details

#initialize(name, target, message = nil) ⇒ Tag

Returns a new instance of Tag.



4
5
6
7
# File 'lib/gitlab_git/tag.rb', line 4

def initialize(name, target, message = nil)
  super(name, target)
  @message = message
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/gitlab_git/tag.rb', line 9

def message
  encode! @message
end