Class: ESX::NetworkInterface
- Inherits:
-
Object
- Object
- ESX::NetworkInterface
- 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
Instance Attribute Details
#_wrapped_object ⇒ Object
Returns the value of attribute _wrapped_object.
344 345 346 |
# File 'lib/esx.rb', line 344 def _wrapped_object @_wrapped_object end |
Class Method Details
.wrap(obj) ⇒ Object
346 347 348 349 350 |
# File 'lib/esx.rb', line 346 def self.wrap(obj) ni = NetworkInterface.new ni._wrapped_object = obj ni end |
Instance Method Details
#ip_address ⇒ Object
352 353 354 |
# File 'lib/esx.rb', line 352 def ip_address _wrapped_object.ipAddress.first end |
#mac ⇒ Object
356 357 358 |
# File 'lib/esx.rb', line 356 def mac _wrapped_object.ipAddress.last end |