Class: Backup::CloudIO::S3::Object
- Inherits:
-
Object
- Object
- Backup::CloudIO::S3::Object
- Defined in:
- lib/backup/cloud_io/s3.rb
Instance Attribute Summary collapse
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#storage_class ⇒ Object
readonly
Returns the value of attribute storage_class.
Instance Method Summary collapse
-
#encryption ⇒ Object
currently ‘AES256’ or nil.
-
#initialize(cloud_io, data) ⇒ Object
constructor
A new instance of Object.
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
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
237 238 239 |
# File 'lib/backup/cloud_io/s3.rb', line 237 def etag @etag end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
237 238 239 |
# File 'lib/backup/cloud_io/s3.rb', line 237 def key @key end |
#storage_class ⇒ Object (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
#encryption ⇒ Object
currently ‘AES256’ or nil
247 248 249 |
# File 'lib/backup/cloud_io/s3.rb', line 247 def encryption ['x-amz-server-side-encryption'] end |