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.
-
#hypervisor ⇒ Object
readonly
Returns the value of attribute hypervisor.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ 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 |
# 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) 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 |
#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
32 33 34 35 36 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 32 def ==(other) name == other.name && hypervisor == other.hypervisor && default_disk_size == other.default_disk_size end |