Class: StatusPageRuby::Services::BackupData

Inherits:
Object
  • Object
show all
Defined in:
lib/status_page_ruby/services/backup_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#storageObject (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