Class: Bosh::Stemcell::Infrastructure::Base
- Inherits:
-
Object
- Object
- Bosh::Stemcell::Infrastructure::Base
- Defined in:
- lib/bosh/stemcell/infrastructure.rb
Instance Attribute Summary collapse
-
#default_disk_size ⇒ Object
readonly
Returns the value of attribute default_disk_size.
-
#disk_formats ⇒ Object
readonly
Returns the value of attribute disk_formats.
-
#hypervisor ⇒ Object
readonly
Returns the value of attribute hypervisor.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #additional_cloud_properties ⇒ Object
- #default_disk_format ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
25 26 27 28 29 30 31 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 25 def initialize( = {}) @name = .fetch(:name) @supports_light_stemcell = .fetch(:supports_light_stemcell, false) @hypervisor = .fetch(:hypervisor) @default_disk_size = .fetch(:default_disk_size) @disk_formats = .fetch(:disk_formats) end |
Instance Attribute Details
#default_disk_size ⇒ Object (readonly)
Returns the value of attribute default_disk_size.
23 24 25 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 23 def default_disk_size @default_disk_size end |
#disk_formats ⇒ Object (readonly)
Returns the value of attribute disk_formats.
23 24 25 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 23 def disk_formats @disk_formats end |
#hypervisor ⇒ Object (readonly)
Returns the value of attribute hypervisor.
23 24 25 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 23 def hypervisor @hypervisor end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 23 def name @name end |
Instance Method Details
#==(other) ⇒ Object
41 42 43 44 45 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 41 def ==(other) name == other.name && hypervisor == other.hypervisor && default_disk_size == other.default_disk_size end |
#additional_cloud_properties ⇒ Object
37 38 39 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 37 def additional_cloud_properties {} end |
#default_disk_format ⇒ Object
33 34 35 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 33 def default_disk_format disk_formats.first end |