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.
519 520 521 |
# File 'lib/esx.rb', line 519 def _wrapped_object @_wrapped_object end |
Class Method Details
.wrap(obj) ⇒ Object
521 522 523 524 525 |
# File 'lib/esx.rb', line 521 def self.wrap(obj) gi = GuestInfo.new gi._wrapped_object = obj gi end |
Instance Method Details
#ip_address ⇒ Object
527 528 529 |
# File 'lib/esx.rb', line 527 def ip_address _wrapped_object.ipAddress end |
#nics ⇒ Object
531 532 533 534 535 536 537 |
# File 'lib/esx.rb', line 531 def nics n = [] _wrapped_object.net.each do |nic| n << NetworkInterface.wrap(nic) end n end |
#tools_running_status ⇒ Object
539 540 541 |
# File 'lib/esx.rb', line 539 def tools_running_status _wrapped_object.toolsRunningStatus end |
#vmware_tools_installed? ⇒ Boolean
543 544 545 |
# File 'lib/esx.rb', line 543 def vmware_tools_installed? _wrapped_object.toolsRunningStatus != 'guestToolsNotRunning' end |