Class: Backup::Storage::Qiniu
- Includes:
- Cycler
- Defined in:
- lib/backup/storage/qiniu.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Qiniu API credentials.
-
#bucket ⇒ Object
Qiniu bucket name.
-
#secret_key ⇒ Object
Qiniu API credentials.
Attributes inherited from Base
#keep, #model, #package, #path, #storage_id
Instance Method Summary collapse
-
#initialize(model, storage_id = nil) ⇒ Qiniu
constructor
A new instance of Qiniu.
Methods inherited from Base
Methods included from Config::Helpers
Constructor Details
#initialize(model, storage_id = nil) ⇒ Qiniu
Returns a new instance of Qiniu.
18 19 20 21 22 23 24 25 |
# File 'lib/backup/storage/qiniu.rb', line 18 def initialize(model, storage_id = nil) super @path ||= 'backups' check_configuration config_credentials end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers
Instance Attribute Details
#access_key ⇒ Object
Qiniu API credentials
12 13 14 |
# File 'lib/backup/storage/qiniu.rb', line 12 def access_key @access_key end |
#bucket ⇒ Object
Qiniu bucket name
16 17 18 |
# File 'lib/backup/storage/qiniu.rb', line 16 def bucket @bucket end |
#secret_key ⇒ Object
Qiniu API credentials
12 13 14 |
# File 'lib/backup/storage/qiniu.rb', line 12 def secret_key @secret_key end |