Class: VCenterDriver::VCenterCachedDatastore

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

Instance Method Summary collapse

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

#nameObject



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