Class: EnhanceRepo::RpmMd::Reference

Inherits:
Object
  • Object
show all
Defined in:
lib/enhance_repo/rpm_md/update.rb

Overview

Represents a reference to a external bugreport feature or issue for a software update

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReference

initialize a reference, per default a novell bugzilla type



63
64
65
66
67
68
# File 'lib/enhance_repo/rpm_md/update.rb', line 63

def initialize
  @href = "http://bugzilla.novell.com"
  @referenceid = "none"
  @title = ""
  @type = "bugzilla"
end

Instance Attribute Details

#hrefObject

uri of the reference



48
49
50
# File 'lib/enhance_repo/rpm_md/update.rb', line 48

def href
  @href
end

#referenceidObject

the id, for example 34561 the pair type-id should be globally unique



53
54
55
# File 'lib/enhance_repo/rpm_md/update.rb', line 53

def referenceid
  @referenceid
end

#titleObject

label to display to the user



55
56
57
# File 'lib/enhance_repo/rpm_md/update.rb', line 55

def title
  @title
end

#typeObject

its type, for example, bnc (novell’s bugzilla)



50
51
52
# File 'lib/enhance_repo/rpm_md/update.rb', line 50

def type
  @type
end

Instance Method Details

#to_sObject



57
58
59
# File 'lib/enhance_repo/rpm_md/update.rb', line 57

def to_s
 "#{type}##{referenceid}"
end