Class: Backup::Storage::QiNiu
- Includes:
- Cycler
- Defined in:
- lib/backup/storage/qi_niu.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#expires_in ⇒ Object
Returns the value of attribute expires_in.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#retry_waitsec ⇒ Object
Returns the value of attribute retry_waitsec.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
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.
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/backup/storage/qi_niu.rb', line 15 def initialize(model, storage_id = nil) super @max_retries ||= 3 @retry_waitsec ||= 30 @path ||= 'backups' path.sub!(/^\//, '') check_configuration 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
Returns the value of attribute access_key.
10 11 12 |
# File 'lib/backup/storage/qi_niu.rb', line 10 def access_key @access_key end |
#bucket ⇒ Object
Returns the value of attribute bucket.
11 12 13 |
# File 'lib/backup/storage/qi_niu.rb', line 11 def bucket @bucket end |
#expires_in ⇒ Object
Returns the value of attribute expires_in.
12 13 14 |
# File 'lib/backup/storage/qi_niu.rb', line 12 def expires_in @expires_in end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
13 14 15 |
# File 'lib/backup/storage/qi_niu.rb', line 13 def max_retries @max_retries end |
#retry_waitsec ⇒ Object
Returns the value of attribute retry_waitsec.
13 14 15 |
# File 'lib/backup/storage/qi_niu.rb', line 13 def retry_waitsec @retry_waitsec end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
10 11 12 |
# File 'lib/backup/storage/qi_niu.rb', line 10 def secret_key @secret_key end |