Class: Bosh::Director::DeploymentPlan::CompiledPackage
- Defined in:
- lib/bosh/director/deployment_plan/compiled_package.rb
Instance Attribute Summary collapse
-
#model ⇒ Models::CompiledPackage
readonly
Compiled package DB model.
-
#name ⇒ String
readonly
Package name.
-
#version ⇒ String
readonly
Package version.
Instance Method Summary collapse
-
#initialize(model) ⇒ CompiledPackage
constructor
A new instance of CompiledPackage.
-
#spec ⇒ Hash<String,Object>
Hash representation.
Constructor Details
#initialize(model) ⇒ CompiledPackage
Returns a new instance of CompiledPackage.
17 18 19 20 21 22 |
# File 'lib/bosh/director/deployment_plan/compiled_package.rb', line 17 def initialize(model) @model = model @name = model.package.name @version = model.package.version end |
Instance Attribute Details
#model ⇒ Models::CompiledPackage (readonly)
Returns Compiled package DB model.
8 9 10 |
# File 'lib/bosh/director/deployment_plan/compiled_package.rb', line 8 def model @model end |
#name ⇒ String (readonly)
Returns Package name.
11 12 13 |
# File 'lib/bosh/director/deployment_plan/compiled_package.rb', line 11 def name @name end |
#version ⇒ String (readonly)
Returns Package version.
14 15 16 |
# File 'lib/bosh/director/deployment_plan/compiled_package.rb', line 14 def version @version end |