Sha256: 8feee169c0e1a5bf88bf414f1ce996f744267aa02836418c730fbb0b50054137
Contents?: true
Size: 1.07 KB
Versions: 37
Compression:
Stored size: 1.07 KB
Contents
module Fog module AWS class Storage class Version < Fog::Model identity :version, :aliases => 'VersionId' attribute :key, :aliases => 'Key' attribute :last_modified, :aliases => ['Last-Modified', 'LastModified'] attribute :latest, :aliases => 'IsLatest', :type => :boolean attribute :content_length, :aliases => ['Content-Length', 'Size'], :type => :integer attribute :delete_marker, :type => :boolean def file @file ||= if collection.file collection.file.directory.files.get(key, 'versionId' => version) else collection.directory.files.get(key, 'versionId' => version) end end 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 end end end end
Version data entries
37 entries across 37 versions & 1 rubygems