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.
-
#transfer_options ⇒ Object
Returns the value of attribute transfer_options.
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 12 |
# 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] self. = args[:transfer_options] 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 |
#transfer_options ⇒ Object
Returns the value of attribute transfer_options.
3 4 5 |
# File 'lib/undestroy/archive.rb', line 3 def @transfer_options end |
Instance Method Details
#run ⇒ Object
23 24 25 |
# File 'lib/undestroy/archive.rb', line 23 def run transfer.run end |