Sha256: c117998d66eed9354d0726dbb42b4ea71abe32360f99df229144c794f94715c9
Contents?: true
Size: 690 Bytes
Versions: 26
Compression:
Stored size: 690 Bytes
Contents
module Foobara module CommandConnectors module Serializers class AtomicSerializer < SuccessSerializer def serialize(object) if object.is_a?(Model) if object.is_a?(Entity) && !object.loaded? # :nocov: raise "#{object} is not loaded so cannot serialize it" # :nocov: end object = object.attributes end entities_to_primary_keys_serializer.serialize(object) end def entities_to_primary_keys_serializer @entities_to_primary_keys_serializer ||= EntitiesToPrimaryKeysSerializer.new(declaration_data) end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems