Class: EnhanceRepo::RpmMd::Reference
- Inherits:
-
Object
- Object
- EnhanceRepo::RpmMd::Reference
- 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
-
#href ⇒ Object
uri of the reference.
-
#referenceid ⇒ Object
the id, for example 34561 the pair type-id should be globally unique.
-
#title ⇒ Object
label to display to the user.
-
#type ⇒ Object
its type, for example, bnc (novell’s bugzilla).
Instance Method Summary collapse
-
#initialize ⇒ Reference
constructor
initialize a reference, per default a novell bugzilla type.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Reference
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
#href ⇒ Object
uri of the reference
48 49 50 |
# File 'lib/enhance_repo/rpm_md/update.rb', line 48 def href @href end |
#referenceid ⇒ Object
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 |
#title ⇒ Object
label to display to the user
55 56 57 |
# File 'lib/enhance_repo/rpm_md/update.rb', line 55 def title @title end |
#type ⇒ Object
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_s ⇒ Object
57 58 59 |
# File 'lib/enhance_repo/rpm_md/update.rb', line 57 def to_s "#{type}##{referenceid}" end |