Class: Backup::Storage::S3
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
Amazon Simple Storage Service (S3) Credentials.
-
#bucket ⇒ Object
Amazon S3 bucket name and path.
-
#path ⇒ Object
Amazon S3 bucket name and path.
-
#region ⇒ Object
Region of the specified S3 bucket.
-
#secret_access_key ⇒ Object
Amazon Simple Storage Service (S3) Credentials.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(model, storage_id = nil, &block) ⇒ S3
constructor
Creates a new instance of the storage object.
Methods inherited from Base
Methods included from Configuration::Helpers
Constructor Details
#initialize(model, storage_id = nil, &block) ⇒ S3
Creates a new instance of the storage object
25 26 27 28 29 30 31 |
# File 'lib/backup/storage/s3.rb', line 25 def initialize(model, storage_id = nil, &block) super(model, storage_id) @path ||= 'backups' instance_eval(&block) if block_given? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Configuration::Helpers
Instance Attribute Details
#access_key_id ⇒ Object
Amazon Simple Storage Service (S3) Credentials
13 14 15 |
# File 'lib/backup/storage/s3.rb', line 13 def access_key_id @access_key_id end |
#bucket ⇒ Object
Amazon S3 bucket name and path
17 18 19 |
# File 'lib/backup/storage/s3.rb', line 17 def bucket @bucket end |
#path ⇒ Object
Amazon S3 bucket name and path
17 18 19 |
# File 'lib/backup/storage/s3.rb', line 17 def path @path end |
#region ⇒ Object
Region of the specified S3 bucket
21 22 23 |
# File 'lib/backup/storage/s3.rb', line 21 def region @region end |
#secret_access_key ⇒ Object
Amazon Simple Storage Service (S3) Credentials
13 14 15 |
# File 'lib/backup/storage/s3.rb', line 13 def secret_access_key @secret_access_key end |