Sha256: 7a42bac2048d2dfc817fa500d8e53a6e7452bacee791fb0cd3b38b8c48227977
Contents?: true
Size: 394 Bytes
Versions: 36
Compression:
Stored size: 394 Bytes
Contents
# frozen_string_literal: true require "bigdecimal" module ActiveJob module Serializers class BigDecimalSerializer < ObjectSerializer # :nodoc: def serialize(big_decimal) super("value" => big_decimal.to_s) end def deserialize(hash) BigDecimal(hash["value"]) end private def klass BigDecimal end end end end
Version data entries
36 entries across 36 versions & 4 rubygems