Class: VMWizard::VirtualMachine

Inherits:
Object
  • Object
show all
Defined in:
lib/esxmagicwand.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(specs) ⇒ VirtualMachine

Returns a new instance of VirtualMachine.



8
9
10
11
12
13
14
15
16
# File 'lib/esxmagicwand.rb', line 8

def initialize(specs)
    @name = specs[:name]
    @disk_size = specs[:disk_size]
    @cpus = specs[:cpus]
    @ram = specs[:ram]
    @disk_type = specs[:disk_type]
    @guest = specs[:guest]
    @nics = specs[:nics]
end

Instance Attribute Details

#cpusObject (readonly)

Returns the value of attribute cpus.



6
7
8
# File 'lib/esxmagicwand.rb', line 6

def cpus
  @cpus
end

#disk_sizeObject (readonly)

Returns the value of attribute disk_size.



6
7
8
# File 'lib/esxmagicwand.rb', line 6

def disk_size
  @disk_size
end

#disk_typeObject (readonly)

Returns the value of attribute disk_type.



6
7
8
# File 'lib/esxmagicwand.rb', line 6

def disk_type
  @disk_type
end

#guestObject (readonly)

Returns the value of attribute guest.



6
7
8
# File 'lib/esxmagicwand.rb', line 6

def guest
  @guest
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/esxmagicwand.rb', line 6

def name
  @name
end

#nicsObject (readonly)

Returns the value of attribute nics.



6
7
8
# File 'lib/esxmagicwand.rb', line 6

def nics
  @nics
end

#ramObject (readonly)

Returns the value of attribute ram.



6
7
8
# File 'lib/esxmagicwand.rb', line 6

def ram
  @ram
end