lib/wor/batchifier/add.rb in wor-batchifier-0.0.1 vs lib/wor/batchifier/add.rb in wor-batchifier-0.0.2
- old
+ new
@@ -1,9 +1,9 @@
-module Wor
- module Batchifier
- class Add < Strategy
- def merge_strategy(response,rec)
- return response.merge(rec) { |_, v1, v2| v1 + v2 }
- end
- end
- end
-end
+module Wor
+ module Batchifier
+ class Add < Strategy
+ def merge_strategy(response,rec)
+ return response.merge(rec) { |_, v1, v2| v1 + v2 }
+ end
+ end
+ end
+end