Sha256: 27813851828f27e01ddfc4f5908f585113a8dc78684928e0f60219869c4ad0a2
Contents?: true
Size: 655 Bytes
Versions: 22
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2020-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # module Burner module Library module Serialize # Treat value like a Ruby object and serialize it using JSON. # # Expected Payload[register] input: anything. # Payload[register] output: string representing the output of the JSON serializer. class Json < JobWithRegister def perform(_output, payload) payload[register] = payload[register].to_json end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems