Class: Bosh::Stemcell::OperatingSystem::Base
- Inherits:
-
Object
- Object
- Bosh::Stemcell::OperatingSystem::Base
- Defined in:
- lib/bosh/stemcell/operating_system.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
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.
14 15 16 17 |
# File 'lib/bosh/stemcell/operating_system.rb', line 14 def initialize( = {}) @name = .fetch(:name) @version = .fetch(:version, nil) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/bosh/stemcell/operating_system.rb', line 12 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
12 13 14 |
# File 'lib/bosh/stemcell/operating_system.rb', line 12 def version @version end |
Instance Method Details
#==(other) ⇒ Object
19 20 21 |
# File 'lib/bosh/stemcell/operating_system.rb', line 19 def ==(other) name == other.name end |