Sha256: 26c40b26954ce5064d1ef11f4815b6bef16c76153bd86df78621a20491bb3e05

Contents?: true

Size: 191 Bytes

Versions: 1

Compression:

Stored size: 191 Bytes

Contents

module Wor
  module Batchifier
    class Add < Strategy
      def merge_strategy(response,rec)
        return response.merge(rec) { |_, v1, v2| v1 + v2 }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wor-batchifier-0.0.2 lib/wor/batchifier/add.rb