Class: Bosh::Stemcell::OperatingSystem::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/stemcell/operating_system.rb

Direct Known Subclasses

Centos, Photonos, Rhel, Ubuntu

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.


17
18
19
20
# File 'lib/bosh/stemcell/operating_system.rb', line 17

def initialize(options = {})
  @name = options.fetch(:name)
  @version = options.fetch(:version)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


15
16
17
# File 'lib/bosh/stemcell/operating_system.rb', line 15

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version


15
16
17
# File 'lib/bosh/stemcell/operating_system.rb', line 15

def version
  @version
end

Instance Method Details

#==(other) ⇒ Object


22
23
24
# File 'lib/bosh/stemcell/operating_system.rb', line 22

def ==(other)
  name == other.name
end