Class: Fog::Storage::AWS::Version
- Inherits:
-
Model
- Object
- Model
- Fog::Storage::AWS::Version
- Defined in:
- lib/fog/aws/models/storage/version.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/fog/aws/models/storage/version.rb', line 23 def destroy if collection.file collection.service.delete_object(collection.file.directory.key, key, 'versionId' => version) else collection.service.delete_object(collection.directory.key, key, 'versionId' => version) end end |
#file ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fog/aws/models/storage/version.rb', line 15 def file @file ||= if collection.file collection.file.directory.files.get(key, 'versionId' => version) else collection.directory.files.get(key, 'versionId' => version) end end |