Class: ESX::NetworkInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/esx.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_wrapped_objectObject

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_addressObject



352
353
354
# File 'lib/esx.rb', line 352

def ip_address
  _wrapped_object.ipAddress.first
end

#macObject



356
357
358
# File 'lib/esx.rb', line 356

def mac
  _wrapped_object.ipAddress.last
end