Class: Tornados::FileWriter

Inherits:
Writer show all
Defined in:
lib/tornados/file_writer.rb

Constant Summary collapse

RESULT_FILE =
"tor_exit_nodes_list.csv"

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Service

call, #execute

Constructor Details

#initialize(data, file = nil) ⇒ FileWriter

Returns a new instance of FileWriter.



13
14
15
16
# File 'lib/tornados/file_writer.rb', line 13

def initialize(data, file = nil)
  super(data)
  @result_file = file || RESULT_FILE
end

Class Method Details

.default_result_fileObject



18
19
20
# File 'lib/tornados/file_writer.rb', line 18

def self.default_result_file
 RESULT_FILE
end