Class: Bringit::Tag
Constant Summary
Constants included from EncodingHelper
EncodingHelper::ENCODING_CONFIDENCE_THRESHOLD
Instance Attribute Summary collapse
-
#object_sha ⇒ Object
readonly
Returns the value of attribute object_sha.
Attributes inherited from Ref
#dereferenced_target, #name, #target
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repository, name, target, message = nil) ⇒ Tag
constructor
A new instance of Tag.
- #message ⇒ Object
Methods inherited from Ref
dereference_object, extract_branch_name, name_valid?
Methods included from EncodingHelper
Constructor Details
#initialize(repository, name, target, message = nil) ⇒ Tag
Returns a new instance of Tag.
9 10 11 12 13 |
# File 'lib/bringit/tag.rb', line 9 def initialize(repository, name, target, = nil) super(repository, name, target) @message = end |
Instance Attribute Details
#object_sha ⇒ Object (readonly)
Returns the value of attribute object_sha.
3 4 5 |
# File 'lib/bringit/tag.rb', line 3 def object_sha @object_sha end |
Class Method Details
.find(repository, name) ⇒ Object
5 6 7 |
# File 'lib/bringit/tag.rb', line 5 def self.find(repository, name) repository..find { |tag| tag.name == name } end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/bringit/tag.rb', line 15 def encode! @message end |