Class: Undestroy::Archive

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/undestroy/archive.rb', line 3

def config
  @config
end

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/undestroy/archive.rb', line 3

def source
  @source
end

#transferObject

Returns the value of attribute transfer.



3
4
5
# File 'lib/undestroy/archive.rb', line 3

def transfer
  @transfer
end

Instance Method Details

#runObject



20
21
22
# File 'lib/undestroy/archive.rb', line 20

def run
  transfer.run
end