Class: Undestroy::Restore

Inherits:
Object
  • Object
show all
Defined in:
lib/undestroy/restore.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Restore

Returns a new instance of Restore.



6
7
8
9
10
11
12
# File 'lib/undestroy/restore.rb', line 6

def initialize(args={})
  validate_arguments(args)

  self.target = args[:target]
  self.config = args[:config]
  self.transfer = args[:transfer]
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



4
5
6
# File 'lib/undestroy/restore.rb', line 4

def config
  @config
end

#targetObject

Returns the value of attribute target.



4
5
6
# File 'lib/undestroy/restore.rb', line 4

def target
  @target
end

#transferObject

Returns the value of attribute transfer.



4
5
6
# File 'lib/undestroy/restore.rb', line 4

def transfer
  @transfer
end

Instance Method Details

#runObject



21
22
23
# File 'lib/undestroy/restore.rb', line 21

def run
  transfer.run
end