Class: Backup::Storage::Aliyun
- Inherits:
-
Base
- Object
- Base
- Backup::Storage::Aliyun
- Defined in:
- lib/backup/storage/aliyun.rb
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
-
#access_key_secret ⇒ Object
Returns the value of attribute access_key_secret.
-
#area ⇒ Object
Returns the value of attribute area.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(model, storage_id = nil, &block) ⇒ Aliyun
constructor
A new instance of Aliyun.
Constructor Details
#initialize(model, storage_id = nil, &block) ⇒ Aliyun
Returns a new instance of Aliyun.
8 9 10 11 12 13 14 15 |
# File 'lib/backup/storage/aliyun.rb', line 8 def initialize(model, storage_id = nil, &block) super(model, storage_id) @path ||= 'backups' @area ||= 'cn-hangzhou' instance_eval(&block) if block_given? end |
Instance Attribute Details
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
6 7 8 |
# File 'lib/backup/storage/aliyun.rb', line 6 def access_key_id @access_key_id end |
#access_key_secret ⇒ Object
Returns the value of attribute access_key_secret.
6 7 8 |
# File 'lib/backup/storage/aliyun.rb', line 6 def access_key_secret @access_key_secret end |
#area ⇒ Object
Returns the value of attribute area.
6 7 8 |
# File 'lib/backup/storage/aliyun.rb', line 6 def area @area end |
#bucket ⇒ Object
Returns the value of attribute bucket.
6 7 8 |
# File 'lib/backup/storage/aliyun.rb', line 6 def bucket @bucket end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/backup/storage/aliyun.rb', line 6 def path @path end |