Class: SlidayBackup::Storage::SlidayStorage

Inherits:
Base
  • Object
show all
Includes:
Cycler
Defined in:
lib/sliday_backup/storage/sliday_storage.rb

Defined Under Namespace

Classes: Error

Instance Attribute Summary collapse

Attributes inherited from Base

#keep, #model, #package, #path, #storage_id

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Config::Helpers

included

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_keyObject

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_hostObject

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