Class: Backup::Storage::Ninefold
- Defined in:
- lib/backup/storage/ninefold.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Ninefold directory path.
-
#storage_secret ⇒ Object
Ninefold Credentials.
-
#storage_token ⇒ Object
Ninefold Credentials.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(model, storage_id = nil, &block) ⇒ Ninefold
constructor
Creates a new instance of the storage object.
Methods inherited from Base
Methods included from Configuration::Helpers
#clear_defaults!, #load_defaults!
Constructor Details
#initialize(model, storage_id = nil, &block) ⇒ Ninefold
Creates a new instance of the storage object
21 22 23 24 25 26 27 |
# File 'lib/backup/storage/ninefold.rb', line 21 def initialize(model, storage_id = nil, &block) super(model, storage_id) @path ||= 'backups' instance_eval(&block) if block_given? end |
Instance Attribute Details
#path ⇒ Object
Ninefold directory path
17 18 19 |
# File 'lib/backup/storage/ninefold.rb', line 17 def path @path end |
#storage_secret ⇒ Object
Ninefold Credentials
13 14 15 |
# File 'lib/backup/storage/ninefold.rb', line 13 def storage_secret @storage_secret end |
#storage_token ⇒ Object
Ninefold Credentials
13 14 15 |
# File 'lib/backup/storage/ninefold.rb', line 13 def storage_token @storage_token end |