Class: RJGit::Tag
- Inherits:
-
Object
- Object
- RJGit::Tag
- Defined in:
- lib/tag.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
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.
11 12 13 14 |
# File 'lib/tag.rb', line 11 def initialize(jtag) @jtag = jtag @id = ObjectId.to_string(jtag.get_id) end |
Instance Attribute Details
#id ⇒ Object (readonly)
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
24 25 26 |
# File 'lib/tag.rb', line 24 def actor @actor ||= Actor.new_from_person_ident(@jtag.get_tagger_ident) end |
#full_message ⇒ Object
16 17 18 |
# File 'lib/tag.rb', line 16 def @full_message ||= @jtag. end |
#name ⇒ Object
28 29 30 |
# File 'lib/tag.rb', line 28 def name @name ||= @jtag.get_tag_name end |
#object ⇒ Object
36 37 38 |
# File 'lib/tag.rb', line 36 def object @object ||= @jtag.get_object end |
#object_type ⇒ Object
40 41 42 |
# File 'lib/tag.rb', line 40 def object_type @object_type ||= object.get_type end |
#short_message ⇒ Object
20 21 22 |
# File 'lib/tag.rb', line 20 def @short_message ||= @jtag. end |
#type ⇒ Object
32 33 34 |
# File 'lib/tag.rb', line 32 def type @type ||= @jtag.get_type end |