Class: Hakoy::AppendStrategy
- Inherits:
-
Object
- Object
- Hakoy::AppendStrategy
- Defined in:
- lib/hakoy/append_strategy.rb
Instance Method Summary collapse
Instance Method Details
#append_row_to_file(file_path, row_hash) ⇒ Object
3 4 5 |
# File 'lib/hakoy/append_strategy.rb', line 3 def append_row_to_file(file_path, row_hash) memory[file_path] << row_hash end |
#finalize!(uid_key) ⇒ Object
7 8 9 10 11 |
# File 'lib/hakoy/append_strategy.rb', line 7 def finalize!(uid_key) memory.each do |file_path, rows_hash| FileAppender.(file_path, rows_hash, uid_key: uid_key) end end |