Class: Snapshotar::Configuration
- Inherits:
-
Object
- Object
- Snapshotar::Configuration
- Defined in:
- lib/snapshotar/configuration.rb
Overview
Configuration Class
Instance Attribute Summary collapse
-
#models ⇒ Object
Provide the models and their attributes to seralize like this: [[ModelName1, :attribute1, :attribute2,…],[ModelName2, :attribute1]].
-
#storage_type ⇒ Object
Where to store your snapshots? -
:s3
for amazon s3 service -:file
local directory.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
:nodoc:.
Constructor Details
#initialize ⇒ Configuration
:nodoc:
19 20 21 22 |
# File 'lib/snapshotar/configuration.rb', line 19 def initialize #:nodoc: @storage_type = :file @models = [] end |
Instance Attribute Details
#models ⇒ Object
Provide the models and their attributes to seralize like this:
[[ModelName1, :attribute1, :attribute2,...],[ModelName2, :attribute1]]
17 18 19 |
# File 'lib/snapshotar/configuration.rb', line 17 def models @models end |
#storage_type ⇒ Object
Where to store your snapshots?
-
:s3
for amazon s3 service -
:file
local directory
11 12 13 |
# File 'lib/snapshotar/configuration.rb', line 11 def storage_type @storage_type end |