Class: Backup::Storages::AmazonS3::Object

Inherits:
Base::Object show all
Defined in:
lib/backup-agent/storages/amazon-s3.rb

Instance Attribute Summary

Attributes inherited from Base::Object

#id, #storage

Instance Method Summary collapse

Methods inherited from Base::Object

#to_s

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_modifiedObject



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