Class: ESX::Datastore
- Inherits:
-
Object
- Object
- ESX::Datastore
- Defined in:
- lib/esx.rb
Instance Attribute Summary (collapse)
-
- (Object) accessible
Returns the value of attribute accessible.
-
- (Object) capacity
Returns the value of attribute capacity.
-
- (Object) datastore_type
Returns the value of attribute datastore_type.
-
- (Object) free_space
Returns the value of attribute free_space.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) url
Returns the value of attribute url.
Class Method Summary (collapse)
-
+ (Object) wrap(ds)
Internal method.
Instance Attribute Details
- (Object) accessible
Returns the value of attribute accessible
238 239 240 |
# File 'lib/esx.rb', line 238 def accessible @accessible end |
- (Object) capacity
Returns the value of attribute capacity
238 239 240 |
# File 'lib/esx.rb', line 238 def capacity @capacity end |
- (Object) datastore_type
Returns the value of attribute datastore_type
238 239 240 |
# File 'lib/esx.rb', line 238 def datastore_type @datastore_type end |
- (Object) free_space
Returns the value of attribute free_space
238 239 240 |
# File 'lib/esx.rb', line 238 def free_space @free_space end |
- (Object) name
Returns the value of attribute name
238 239 240 |
# File 'lib/esx.rb', line 238 def name @name end |
- (Object) url
Returns the value of attribute url
239 240 241 |
# File 'lib/esx.rb', line 239 def url @url end |
Class Method Details
+ (Object) wrap(ds)
Internal method. Do not use
244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/esx.rb', line 244 def self.wrap(ds) @_datastore = ds _ds = Datastore.new _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 |