Class: Undestroy::Archive
- Inherits:
-
Object
- Object
- Undestroy::Archive
- Defined in:
- lib/undestroy/archive.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#source ⇒ Object
Returns the value of attribute source.
-
#transfer ⇒ Object
Returns the value of attribute transfer.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Archive
constructor
A new instance of Archive.
- #run ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Archive
Returns a new instance of Archive.
5 6 7 8 9 10 11 |
# File 'lib/undestroy/archive.rb', line 5 def initialize(args={}) validate_arguments(args) self.source = args[:source] self.config = args[:config] self.transfer = args[:transfer] end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/undestroy/archive.rb', line 3 def config @config end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/undestroy/archive.rb', line 3 def source @source end |
#transfer ⇒ Object
Returns the value of attribute transfer.
3 4 5 |
# File 'lib/undestroy/archive.rb', line 3 def transfer @transfer end |
Instance Method Details
#run ⇒ Object
20 21 22 |
# File 'lib/undestroy/archive.rb', line 20 def run transfer.run end |