Class: Backup::Storage::Aliyun
- Inherits:
-
Base
- Object
- Base
- Backup::Storage::Aliyun
- Includes:
- Storage::Cycler
- 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.
-
#aliyun_internal ⇒ Object
Returns the value of attribute aliyun_internal.
-
#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.
11 12 13 14 15 16 17 |
# File 'lib/backup/storage/aliyun.rb', line 11 def initialize(model, storage_id = nil, &block) super(model, storage_id) @path ||= 'backups' instance_eval(&block) if block_given? end |
Instance Attribute Details
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
9 10 11 |
# File 'lib/backup/storage/aliyun.rb', line 9 def access_key_id @access_key_id end |
#access_key_secret ⇒ Object
Returns the value of attribute access_key_secret.
9 10 11 |
# File 'lib/backup/storage/aliyun.rb', line 9 def access_key_secret @access_key_secret end |
#aliyun_internal ⇒ Object
Returns the value of attribute aliyun_internal.
9 10 11 |
# File 'lib/backup/storage/aliyun.rb', line 9 def aliyun_internal @aliyun_internal end |
#area ⇒ Object
Returns the value of attribute area.
9 10 11 |
# File 'lib/backup/storage/aliyun.rb', line 9 def area @area end |
#bucket ⇒ Object
Returns the value of attribute bucket.
9 10 11 |
# File 'lib/backup/storage/aliyun.rb', line 9 def bucket @bucket end |
#path ⇒ Object
Returns the value of attribute path.
9 10 11 |
# File 'lib/backup/storage/aliyun.rb', line 9 def path @path end |