Sha256: 2e96a1687e61dabaca780ca05cb71bfa86fd26c16114943ed0812bc23ef201d5
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
# frozen_string_literal: true require_relative 'value_type' module LedgerSync class Serialization module Type class SerializerType < ValueType attr_reader :serializer def initialize(args = {}) @serializer = args.fetch(:serializer) end def convert(args = {}) value = args.fetch(:value) serializer.new.serialize(resource: value) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.5 | lib/ledger_sync/serialization/type/serializer_type.rb |