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

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

Direct Known Subclasses

Centos, Rhel, Ubuntu

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#==(other) ⇒ Object



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

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