Class: StatusPageRuby::Services::BackupData
- Inherits:
-
Object
- Object
- StatusPageRuby::Services::BackupData
- Defined in:
- lib/status_page_ruby/services/backup_data.rb
Instance Attribute Summary collapse
-
#storage ⇒ Object
readonly
Returns the value of attribute storage.
Instance Method Summary collapse
- #call(path) ⇒ Object
-
#initialize(storage) ⇒ BackupData
constructor
A new instance of BackupData.
Constructor Details
#initialize(storage) ⇒ BackupData
Returns a new instance of BackupData.
6 7 8 |
# File 'lib/status_page_ruby/services/backup_data.rb', line 6 def initialize(storage) @storage = storage end |
Instance Attribute Details
#storage ⇒ Object (readonly)
Returns the value of attribute storage.
4 5 6 |
# File 'lib/status_page_ruby/services/backup_data.rb', line 4 def storage @storage end |
Instance Method Details
#call(path) ⇒ Object
10 11 12 |
# File 'lib/status_page_ruby/services/backup_data.rb', line 10 def call(path) storage.copy(path) end |