Class: Undestroy::Restore
- Inherits:
-
Object
- Object
- Undestroy::Restore
- Defined in:
- lib/undestroy/restore.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#target ⇒ Object
Returns the value of attribute target.
-
#transfer ⇒ Object
Returns the value of attribute transfer.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Restore
constructor
A new instance of Restore.
- #run ⇒ Object
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
#config ⇒ Object
Returns the value of attribute config.
4 5 6 |
# File 'lib/undestroy/restore.rb', line 4 def config @config end |
#target ⇒ Object
Returns the value of attribute target.
4 5 6 |
# File 'lib/undestroy/restore.rb', line 4 def target @target end |
#transfer ⇒ Object
Returns the value of attribute transfer.
4 5 6 |
# File 'lib/undestroy/restore.rb', line 4 def transfer @transfer end |
Instance Method Details
#run ⇒ Object
21 22 23 |
# File 'lib/undestroy/restore.rb', line 21 def run transfer.run end |