Class: RJGit::Tag
- Inherits:
-
Object
- Object
- RJGit::Tag
- Defined in:
- lib/tag.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
(also: #get_name)
readonly
Returns the value of attribute id.
-
#jtag ⇒ Object
readonly
Returns the value of attribute jtag.
Instance Method Summary collapse
- #actor ⇒ Object
- #full_message ⇒ Object
-
#initialize(jtag) ⇒ Tag
constructor
A new instance of Tag.
- #name ⇒ Object
- #object ⇒ Object
- #object_type ⇒ Object
- #short_message ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(jtag) ⇒ Tag
Returns a new instance of Tag.
12 13 14 15 |
# File 'lib/tag.rb', line 12 def initialize(jtag) @jtag = jtag @id = ObjectId.to_string(jtag.get_id) end |
Instance Attribute Details
#id ⇒ Object (readonly) Also known as: get_name
Returns the value of attribute id.
8 9 10 |
# File 'lib/tag.rb', line 8 def id @id end |
#jtag ⇒ Object (readonly)
Returns the value of attribute jtag.
8 9 10 |
# File 'lib/tag.rb', line 8 def jtag @jtag end |
Instance Method Details
#actor ⇒ Object
25 26 27 |
# File 'lib/tag.rb', line 25 def actor @actor ||= Actor.new_from_person_ident(@jtag.get_tagger_ident) end |
#full_message ⇒ Object
17 18 19 |
# File 'lib/tag.rb', line 17 def @full_message ||= @jtag. end |
#name ⇒ Object
29 30 31 |
# File 'lib/tag.rb', line 29 def name @name ||= @jtag.get_tag_name end |
#object ⇒ Object
37 38 39 |
# File 'lib/tag.rb', line 37 def object @object ||= @jtag.get_object end |
#object_type ⇒ Object
41 42 43 |
# File 'lib/tag.rb', line 41 def object_type @object_type ||= object.get_type end |
#short_message ⇒ Object
21 22 23 |
# File 'lib/tag.rb', line 21 def @short_message ||= @jtag. end |
#type ⇒ Object
33 34 35 |
# File 'lib/tag.rb', line 33 def type @type ||= @jtag.get_type end |