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.
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
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
231 232 233 |
# File 'lib/backup/cloud_io/s3.rb', line 231 def etag @etag end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
231 232 233 |
# File 'lib/backup/cloud_io/s3.rb', line 231 def key @key end |
#storage_class ⇒ Object (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
#encryption ⇒ Object
currently ‘AES256’ or nil
241 242 243 |
# File 'lib/backup/cloud_io/s3.rb', line 241 def encryption ["x-amz-server-side-encryption"] end |