Sha256: f61e7d9927b81941ae33aac5748a9e56546492cf8bf976dac12816717c81de6c

Contents?: true

Size: 320 Bytes

Versions: 4

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

module AdequateSerialization
  module Steps
    class SerializeStep < Step
      def apply(response)
        object = response.object
        serialized = object.class.serializer.serialize(object, response.opts)

        apply_next(response.mutate(serialized))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adequate_serialization-2.0.1 lib/adequate_serialization/steps/serialize_step.rb
adequate_serialization-2.0.0 lib/adequate_serialization/steps/serialize_step.rb
adequate_serialization-1.0.1 lib/adequate_serialization/steps/serialize_step.rb
adequate_serialization-1.0.0 lib/adequate_serialization/steps/serialize_step.rb