Class: Backup::CloudIO::S3::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/backup/cloud_io/s3.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_io, data) ⇒ Object

Returns a new instance of Object.



233
234
235
236
237
238
# File 'lib/backup/cloud_io/s3.rb', line 233

def initialize(cloud_io, data)
  @cloud_io = cloud_io
  @key  = data["Key"]
  @etag = data["ETag"]
  @storage_class = data["StorageClass"]
end

Instance Attribute Details

#etagObject (readonly)

Returns the value of attribute etag.



231
232
233
# File 'lib/backup/cloud_io/s3.rb', line 231

def etag
  @etag
end

#keyObject (readonly)

Returns the value of attribute key.



231
232
233
# File 'lib/backup/cloud_io/s3.rb', line 231

def key
  @key
end

#storage_classObject (readonly)

Returns the value of attribute storage_class.



231
232
233
# File 'lib/backup/cloud_io/s3.rb', line 231

def storage_class
  @storage_class
end

Instance Method Details

#encryptionObject

currently ‘AES256’ or nil



241
242
243
# File 'lib/backup/cloud_io/s3.rb', line 241

def encryption
  ["x-amz-server-side-encryption"]
end