Class: ESX::GuestInfo
- Inherits:
-
Object
- Object
- ESX::GuestInfo
- Defined in:
- lib/esx.rb
Instance Attribute Summary collapse
-
#_wrapped_object ⇒ Object
Returns the value of attribute _wrapped_object.
Class Method Summary collapse
Instance Method Summary collapse
- #ip_address ⇒ Object
- #nics ⇒ Object
- #tools_running_status ⇒ Object
- #vmware_tools_installed? ⇒ Boolean
Instance Attribute Details
#_wrapped_object ⇒ Object
Returns the value of attribute _wrapped_object.
364 365 366 |
# File 'lib/esx.rb', line 364 def _wrapped_object @_wrapped_object end |
Class Method Details
.wrap(obj) ⇒ Object
366 367 368 369 370 |
# File 'lib/esx.rb', line 366 def self.wrap(obj) gi = GuestInfo.new gi._wrapped_object = obj gi end |
Instance Method Details
#ip_address ⇒ Object
372 373 374 |
# File 'lib/esx.rb', line 372 def ip_address _wrapped_object.ipAddress end |
#nics ⇒ Object
376 377 378 379 380 381 382 |
# File 'lib/esx.rb', line 376 def nics n = [] _wrapped_object.net.each do |nic| n << NetworkInterface.wrap(nic) end n end |
#tools_running_status ⇒ Object
384 385 386 |
# File 'lib/esx.rb', line 384 def tools_running_status _wrapped_object.toolsRunningStatus end |
#vmware_tools_installed? ⇒ Boolean
388 389 390 |
# File 'lib/esx.rb', line 388 def vmware_tools_installed? _wrapped_object.toolsRunningStatus != 'guestToolsNotRunning' end |