Class: EnhanceRepo::RpmMd::Resource
- Inherits:
-
Object
- Object
- EnhanceRepo::RpmMd::Resource
- Defined in:
- lib/enhance_repo/rpm_md/resource.rb
Overview
represents a resource in repomd.xml
Instance Attribute Summary collapse
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#location ⇒ Object
Returns the value of attribute location.
-
#openchecksum ⇒ Object
Returns the value of attribute openchecksum.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#==(other) ⇒ Object
define equality based on the location as it has no sense to have two resources for the same location.
Instance Attribute Details
#checksum ⇒ Object
Returns the value of attribute checksum.
32 33 34 |
# File 'lib/enhance_repo/rpm_md/resource.rb', line 32 def checksum @checksum end |
#location ⇒ Object
Returns the value of attribute location.
32 33 34 |
# File 'lib/enhance_repo/rpm_md/resource.rb', line 32 def location @location end |
#openchecksum ⇒ Object
Returns the value of attribute openchecksum.
32 33 34 |
# File 'lib/enhance_repo/rpm_md/resource.rb', line 32 def openchecksum @openchecksum end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
32 33 34 |
# File 'lib/enhance_repo/rpm_md/resource.rb', line 32 def @timestamp end |
#type ⇒ Object
Returns the value of attribute type.
31 32 33 |
# File 'lib/enhance_repo/rpm_md/resource.rb', line 31 def type @type end |
Instance Method Details
#==(other) ⇒ Object
define equality based on the location as it has no sense to have two resources for the same location
37 38 39 40 |
# File 'lib/enhance_repo/rpm_md/resource.rb', line 37 def ==(other) return (location == other.location) if other.is_a?(Resource) false end |