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.
590 591 592 |
# File 'lib/esx.rb', line 590 def _wrapped_object @_wrapped_object end |
Class Method Details
.wrap(obj) ⇒ Object
592 593 594 595 596 |
# File 'lib/esx.rb', line 592 def self.wrap(obj) gi = GuestInfo.new gi._wrapped_object = obj gi end |
Instance Method Details
#ip_address ⇒ Object
598 599 600 |
# File 'lib/esx.rb', line 598 def ip_address _wrapped_object.ipAddress end |
#nics ⇒ Object
602 603 604 605 606 607 608 |
# File 'lib/esx.rb', line 602 def nics n = [] _wrapped_object.net.each do |nic| n << NetworkInterface.wrap(nic) end n end |
#tools_running_status ⇒ Object
610 611 612 |
# File 'lib/esx.rb', line 610 def tools_running_status _wrapped_object.toolsRunningStatus end |
#vmware_tools_installed? ⇒ Boolean
614 615 616 |
# File 'lib/esx.rb', line 614 def vmware_tools_installed? _wrapped_object.toolsRunningStatus != 'guestToolsNotRunning' end |