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.



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

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.



237
238
239
# File 'lib/backup/cloud_io/s3.rb', line 237

def etag
  @etag
end

#keyObject (readonly)

Returns the value of attribute key.



237
238
239
# File 'lib/backup/cloud_io/s3.rb', line 237

def key
  @key
end

#storage_classObject (readonly)

Returns the value of attribute storage_class.



237
238
239
# File 'lib/backup/cloud_io/s3.rb', line 237

def storage_class
  @storage_class
end

Instance Method Details

#encryptionObject

currently ‘AES256’ or nil



247
248
249
# File 'lib/backup/cloud_io/s3.rb', line 247

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