Class: Datafile::ZipWorker
- Inherits:
-
Object
- Object
- Datafile::ZipWorker
- Includes:
- LogUtils::Logging
- Defined in:
- lib/datafile/workers/zip/worker.rb
Overview
check: rename to ZipDatafileWorker?? or ZipDatafile -why, why not ??
Instance Method Summary collapse
- #calc ⇒ Object
- #download ⇒ Object
- #dump ⇒ Object
-
#initialize(datafile) ⇒ ZipWorker
constructor
A new instance of ZipWorker.
- #read ⇒ Object
Constructor Details
#initialize(datafile) ⇒ ZipWorker
Returns a new instance of ZipWorker.
9 10 11 |
# File 'lib/datafile/workers/zip/worker.rb', line 9 def initialize( datafile ) @datafile = datafile end |
Instance Method Details
#calc ⇒ Object
25 26 27 28 29 |
# File 'lib/datafile/workers/zip/worker.rb', line 25 def calc @datafile.scripts.each do |script| script.call end end |
#download ⇒ Object
13 14 15 16 17 |
# File 'lib/datafile/workers/zip/worker.rb', line 13 def download @datafile.datasets.each do |dataset| dataset.zip_worker.download end end |
#dump ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/datafile/workers/zip/worker.rb', line 31 def dump @datafile.datasets.each do |dataset| dataset.zip_worker.dump end ## also dump scripts @datafile.scripts.each do |script| script.dump end end |
#read ⇒ Object
19 20 21 22 23 |
# File 'lib/datafile/workers/zip/worker.rb', line 19 def read @datafile.datasets.each do |dataset| dataset.zip_worker.read end end |