Sha256: 39963d2d5b19adc07cb79dc052504b787de10b2a5f3dc11af7c17bc9d1271a34

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

require 'dato/site/repo/base'

module Dato
  module Site
    module Repo
      class UploadRequest < Base

        def create(resource_attributes)
          body = JsonApiSerializer.new(
            type: :upload_request,
            attributes: %i(filename),
          ).serialize(resource_attributes)

          post_request "/upload-requests", body
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dato-0.1.5 lib/dato/site/repo/upload_request.rb
dato-0.1.4 lib/dato/site/repo/upload_request.rb
dato-0.1.3 lib/dato/site/repo/upload_request.rb
dato-0.1.2 lib/dato/site/repo/upload_request.rb