Class: VCenterDriver::VCenterCachedDatastore
- Inherits:
-
Object
- Object
- VCenterDriver::VCenterCachedDatastore
- Defined in:
- lib/vcenter_driver.rb
Instance Method Summary collapse
-
#initialize(rbVmomiDatastore) ⇒ VCenterCachedDatastore
constructor
A new instance of VCenterCachedDatastore.
- #name ⇒ Object
Constructor Details
#initialize(rbVmomiDatastore) ⇒ VCenterCachedDatastore
Returns a new instance of VCenterCachedDatastore.
1101 1102 1103 1104 |
# File 'lib/vcenter_driver.rb', line 1101 def initialize(rbVmomiDatastore) @ds = rbVmomiDatastore @attributes = Hash.new end |
Instance Method Details
#name ⇒ Object
1106 1107 1108 1109 1110 1111 |
# File 'lib/vcenter_driver.rb', line 1106 def name if !@attributes['name'] @attributes['name']=@ds.name end @attributes['name'] end |