Sha256: cb974ddfa6b9e61060adc91f676295ff3e5f0c3b3d8c3fd48a6a1250829a9e1c
Contents?: true
Size: 323 Bytes
Versions: 1
Compression:
Stored size: 323 Bytes
Contents
require 'hat/middleware' require 'json' module Hat module Middlewares module Worker module JSON include Hat::Middleware def call(delivery_info, properties, payload) payload = ::JSON.parse(payload) [delivery_info, properties, payload] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rabbit-hat-0.0.1 | lib/hat/middlewares/worker/json.rb |