Class: Bosh::Stemcell::Stemcell
- Inherits:
-
Object
- Object
- Bosh::Stemcell::Stemcell
- Defined in:
- lib/bosh/stemcell/stemcell.rb
Instance Attribute Summary collapse
-
#base_name ⇒ Object
readonly
Returns the value of attribute base_name.
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#disk_format ⇒ Object
readonly
Returns the value of attribute disk_format.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #infrastructure ⇒ Object
-
#initialize(definition, base_name, version, disk_format) ⇒ Stemcell
constructor
A new instance of Stemcell.
- #name ⇒ Object
Constructor Details
#initialize(definition, base_name, version, disk_format) ⇒ Stemcell
Returns a new instance of Stemcell.
6 7 8 9 10 11 |
# File 'lib/bosh/stemcell/stemcell.rb', line 6 def initialize(definition, base_name, version, disk_format) @definition = definition @base_name = base_name @version = version @disk_format = disk_format end |
Instance Attribute Details
#base_name ⇒ Object (readonly)
Returns the value of attribute base_name
4 5 6 |
# File 'lib/bosh/stemcell/stemcell.rb', line 4 def base_name @base_name end |
#definition ⇒ Object (readonly)
Returns the value of attribute definition
4 5 6 |
# File 'lib/bosh/stemcell/stemcell.rb', line 4 def definition @definition end |
#disk_format ⇒ Object (readonly)
Returns the value of attribute disk_format
4 5 6 |
# File 'lib/bosh/stemcell/stemcell.rb', line 4 def disk_format @disk_format end |
#version ⇒ Object (readonly)
Returns the value of attribute version
4 5 6 |
# File 'lib/bosh/stemcell/stemcell.rb', line 4 def version @version end |
Instance Method Details
#infrastructure ⇒ Object
13 14 15 |
# File 'lib/bosh/stemcell/stemcell.rb', line 13 def infrastructure @definition.infrastructure end |
#name ⇒ Object
17 18 19 |
# File 'lib/bosh/stemcell/stemcell.rb', line 17 def name ArchiveFilename.new(version, definition, base_name, disk_format).to_s end |