Class: RJGit::Tag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#jtagObject (readonly)

Returns the value of attribute jtag.



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

def jtag
  @jtag
end

Instance Method Details

#actorObject



24
25
26
# File 'lib/tag.rb', line 24

def actor
  @actor ||= Actor.new_from_person_ident(@jtag.get_tagger_ident)
end

#full_messageObject



16
17
18
# File 'lib/tag.rb', line 16

def full_message
  @full_message ||= @jtag.get_full_message
end

#nameObject



28
29
30
# File 'lib/tag.rb', line 28

def name
  @name ||= @jtag.get_tag_name
end

#objectObject



36
37
38
# File 'lib/tag.rb', line 36

def object
  @object ||= @jtag.get_object
end

#object_typeObject



40
41
42
# File 'lib/tag.rb', line 40

def object_type
  @object_type ||= object.get_type
end

#short_messageObject



20
21
22
# File 'lib/tag.rb', line 20

def short_message
  @short_message ||= @jtag.get_short_message
end

#typeObject



32
33
34
# File 'lib/tag.rb', line 32

def type
  @type ||= @jtag.get_type
end