Class: Backup::Storages::AmazonS3::Object
- Inherits:
-
Base::Object
- Object
- Base::Object
- Backup::Storages::AmazonS3::Object
- Defined in:
- lib/backup-agent/storages/amazon-s3.rb
Instance Attribute Summary
Attributes inherited from Base::Object
Instance Method Summary collapse
-
#initialize(storage, aws_s3_ruby_bucket, id) ⇒ Object
constructor
A new instance of Object.
- #last_modified ⇒ Object
Methods inherited from Base::Object
Constructor Details
#initialize(storage, aws_s3_ruby_bucket, id) ⇒ Object
Returns a new instance of Object.
41 42 43 44 |
# File 'lib/backup-agent/storages/amazon-s3.rb', line 41 def initialize(storage, aws_s3_ruby_bucket, id) super(storage, id) @aws_s3_ruby_bucket = aws_s3_ruby_bucket end |
Instance Method Details
#last_modified ⇒ Object
46 47 48 |
# File 'lib/backup-agent/storages/amazon-s3.rb', line 46 def last_modified @aws_s3_ruby_bucket.object(id).last_modified.utc end |