Method: ESX::Datastore.wrap
- Defined in:
- lib/esx.rb
.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 |