Sha256: 43a2d9044a43bb1e435d32f90d26fe381358cf60fe4f9839b6662179fb0bcc8b

Contents?: true

Size: 278 Bytes

Versions: 3

Compression:

Stored size: 278 Bytes

Contents

module RestPack::Service
  module Commands
    class Create < RestPack::Service::Command

      def execute
        models = self.class.model_class.create!(inputs[self.class.serializer_class.key])
        self.class.serializer_class.serialize models
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restpack_service-0.0.83 lib/restpack_service/commands/create.rb
restpack_service-0.0.82 lib/restpack_service/commands/create.rb
restpack_service-0.0.81 lib/restpack_service/commands/create.rb