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


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

#idObject (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

#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


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

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

#full_messageObject


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

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

#nameObject


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

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

#objectObject


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

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

#object_typeObject


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

def object_type
  @object_type ||= object.get_type
end

#short_messageObject


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

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

#typeObject


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

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