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.



1031
1032
1033
1034
# File 'lib/vcenter_driver.rb', line 1031

def initialize(rbVmomiDatastore)
    @ds         = rbVmomiDatastore
    @attributes = Hash.new
end

Instance Method Details

#nameObject



1036
1037
1038
1039
1040
1041
# File 'lib/vcenter_driver.rb', line 1036

def name
    if !@attributes['name']
        @attributes['name']=@ds.name
    end
    @attributes['name']
end