Class: StudioApi::Package
- Inherits:
-
Object
- Object
- StudioApi::Package
- Defined in:
- lib/studio_api/package.rb
Overview
Represents package in appliance. Used mainly as data storage.
Instance Attribute Summary collapse
-
#arch ⇒ Object
Returns the value of attribute arch.
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#checksum_type ⇒ Object
Returns the value of attribute checksum_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#repository_id ⇒ Object
Returns the value of attribute repository_id.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name, attributes = {}) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(name, attributes = {}) ⇒ Package
Returns a new instance of Package.
5 6 7 8 9 10 |
# File 'lib/studio_api/package.rb', line 5 def initialize name, attributes = {} @name = name attributes.each do |k,v| instance_variable_set "@#{k}", v end end |
Instance Attribute Details
#arch ⇒ Object
Returns the value of attribute arch.
4 5 6 |
# File 'lib/studio_api/package.rb', line 4 def arch @arch end |
#checksum ⇒ Object
Returns the value of attribute checksum.
4 5 6 |
# File 'lib/studio_api/package.rb', line 4 def checksum @checksum end |
#checksum_type ⇒ Object
Returns the value of attribute checksum_type.
4 5 6 |
# File 'lib/studio_api/package.rb', line 4 def checksum_type @checksum_type end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/studio_api/package.rb', line 4 def name @name end |
#repository_id ⇒ Object
Returns the value of attribute repository_id.
4 5 6 |
# File 'lib/studio_api/package.rb', line 4 def repository_id @repository_id end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/studio_api/package.rb', line 4 def version @version end |