Class: ESX::Datastore

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



416
417
418
# File 'lib/esx.rb', line 416

def method_missing(name, *args)
  @_wrapped_object.send name, *args
end

Instance Attribute Details

#_wrapped_objectObject

Internal use only



399
400
401
# File 'lib/esx.rb', line 399

def _wrapped_object
  @_wrapped_object
end

#accessibleObject

Returns the value of attribute accessible.



396
397
398
# File 'lib/esx.rb', line 396

def accessible
  @accessible
end

#capacityObject

Returns the value of attribute capacity.



396
397
398
# File 'lib/esx.rb', line 396

def capacity
  @capacity
end

#datastore_typeObject

Returns the value of attribute datastore_type.



396
397
398
# File 'lib/esx.rb', line 396

def datastore_type
  @datastore_type
end

#free_spaceObject

Returns the value of attribute free_space.



396
397
398
# File 'lib/esx.rb', line 396

def free_space
  @free_space
end

#nameObject

Returns the value of attribute name.



396
397
398
# File 'lib/esx.rb', line 396

def name
  @name
end

#urlObject

Returns the value of attribute url.



397
398
399
# File 'lib/esx.rb', line 397

def url
  @url
end

Class Method Details

.wrap(ds) ⇒ Object

Internal method. Do not use



404
405
406
407
408
409
410
411
412
413
414
# File 'lib/esx.rb', line 404

def self.wrap(ds)
  _ds = Datastore.new
  _ds._wrapped_object = ds
  _ds.name = ds.summary.name
  _ds.capacity = ds.summary.capacity
  _ds.free_space = ds.summary.freeSpace
  _ds.datastore_type = ds.summary.type
  _ds.accessible = ds.summary.accessible
  _ds.url = ds.summary.url
  _ds
end