Class: Tornados::FileWriter
- 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
-
#initialize(data, file = nil) ⇒ FileWriter
constructor
A new instance of FileWriter.
Methods inherited from Service
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_file ⇒ Object
18 19 20 |
# File 'lib/tornados/file_writer.rb', line 18 def self.default_result_file RESULT_FILE end |