Class: Katello::Pulp::SimplePackage
- Inherits:
-
Object
- Object
- Katello::Pulp::SimplePackage
- Defined in:
- app/services/katello/pulp/simple_package.rb
Instance Attribute Summary collapse
-
#arch ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”.
-
#epoch ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”.
-
#name ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”.
-
#release ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”.
-
#vendor ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”.
-
#version ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ SimplePackage
constructor
A new instance of SimplePackage.
- #nvra ⇒ Object
- #nvrea ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ SimplePackage
Returns a new instance of SimplePackage.
7 8 9 |
# File 'app/services/katello/pulp/simple_package.rb', line 7 def initialize(params = {}) params.each_pair { |k, v| instance_variable_set("@#{k}", v) unless v.nil? } end |
Instance Attribute Details
#arch ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”
5 6 7 |
# File 'app/services/katello/pulp/simple_package.rb', line 5 def arch @arch end |
#epoch ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”
5 6 7 |
# File 'app/services/katello/pulp/simple_package.rb', line 5 def epoch @epoch end |
#name ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”
5 6 7 |
# File 'app/services/katello/pulp/simple_package.rb', line 5 def name @name end |
#release ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”
5 6 7 |
# File 'app/services/katello/pulp/simple_package.rb', line 5 def release @release end |
#vendor ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”
5 6 7 |
# File 'app/services/katello/pulp/simple_package.rb', line 5 def vendor @vendor end |
#version ⇒ Object
“name”, “arch”, “version”, “vendor”, “release”
5 6 7 |
# File 'app/services/katello/pulp/simple_package.rb', line 5 def version @version end |
Instance Method Details
#nvra ⇒ Object
11 12 13 |
# File 'app/services/katello/pulp/simple_package.rb', line 11 def nvra nvrea end |
#nvrea ⇒ Object
15 16 17 |
# File 'app/services/katello/pulp/simple_package.rb', line 15 def nvrea "#{@name}-#{@version}-#{@release}.#{@arch}" end |