Class: SlidayBackup::Storage::SlidayStorage
- Includes:
- Cycler
- Defined in:
- lib/sliday_backup/storage/sliday_storage.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#backup_host ⇒ Object
Returns the value of attribute backup_host.
Attributes inherited from Base
#keep, #model, #package, #path, #storage_id
Instance Method Summary collapse
-
#initialize(model, storage_id = nil) ⇒ SlidayStorage
constructor
A new instance of SlidayStorage.
Methods inherited from Base
Methods included from Config::Helpers
Constructor Details
#initialize(model, storage_id = nil) ⇒ SlidayStorage
Returns a new instance of SlidayStorage.
16 17 18 19 |
# File 'lib/sliday_backup/storage/sliday_storage.rb', line 16 def initialize(model, storage_id = nil) super @backup_host ||= 'https://sliday-backups.herokuapp.com' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SlidayBackup::Config::Helpers
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
13 14 15 |
# File 'lib/sliday_backup/storage/sliday_storage.rb', line 13 def api_key @api_key end |
#backup_host ⇒ Object
Returns the value of attribute backup_host.
14 15 16 |
# File 'lib/sliday_backup/storage/sliday_storage.rb', line 14 def backup_host @backup_host end |