Class: VMWizard::VirtualMachine
- Inherits:
-
Object
- Object
- VMWizard::VirtualMachine
- Defined in:
- lib/esxmagicwand.rb
Instance Attribute Summary collapse
-
#cpus ⇒ Object
readonly
Returns the value of attribute cpus.
-
#disk_size ⇒ Object
readonly
Returns the value of attribute disk_size.
-
#disk_type ⇒ Object
readonly
Returns the value of attribute disk_type.
-
#guest ⇒ Object
readonly
Returns the value of attribute guest.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nics ⇒ Object
readonly
Returns the value of attribute nics.
-
#ram ⇒ Object
readonly
Returns the value of attribute ram.
Instance Method Summary collapse
-
#initialize(specs) ⇒ VirtualMachine
constructor
A new instance of VirtualMachine.
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
#cpus ⇒ Object (readonly)
Returns the value of attribute cpus.
6 7 8 |
# File 'lib/esxmagicwand.rb', line 6 def cpus @cpus end |
#disk_size ⇒ Object (readonly)
Returns the value of attribute disk_size.
6 7 8 |
# File 'lib/esxmagicwand.rb', line 6 def disk_size @disk_size end |
#disk_type ⇒ Object (readonly)
Returns the value of attribute disk_type.
6 7 8 |
# File 'lib/esxmagicwand.rb', line 6 def disk_type @disk_type end |
#guest ⇒ Object (readonly)
Returns the value of attribute guest.
6 7 8 |
# File 'lib/esxmagicwand.rb', line 6 def guest @guest end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/esxmagicwand.rb', line 6 def name @name end |
#nics ⇒ Object (readonly)
Returns the value of attribute nics.
6 7 8 |
# File 'lib/esxmagicwand.rb', line 6 def nics @nics end |
#ram ⇒ Object (readonly)
Returns the value of attribute ram.
6 7 8 |
# File 'lib/esxmagicwand.rb', line 6 def ram @ram end |