Sha256: 7713138393d868bc6f0ab63aa8985815911ce760144c16f0fbbca4f11fc3aa89

Contents?: true

Size: 420 Bytes

Versions: 67

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true
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

67 entries across 67 versions & 1 rubygems

Version Path
dato-0.2.6 lib/dato/site/repo/upload_request.rb
dato-0.2.4 lib/dato/site/repo/upload_request.rb
dato-0.1.31 lib/dato/site/repo/upload_request.rb
dato-0.1.30 lib/dato/site/repo/upload_request.rb
dato-0.1.29 lib/dato/site/repo/upload_request.rb
dato-0.1.28 lib/dato/site/repo/upload_request.rb
dato-0.1.27 lib/dato/site/repo/upload_request.rb
dato-0.1.26 lib/dato/site/repo/upload_request.rb
dato-0.1.25 lib/dato/site/repo/upload_request.rb
dato-0.1.24 lib/dato/site/repo/upload_request.rb
dato-0.1.23 lib/dato/site/repo/upload_request.rb
dato-0.1.22 lib/dato/site/repo/upload_request.rb
dato-0.1.21 lib/dato/site/repo/upload_request.rb
dato-0.1.20 lib/dato/site/repo/upload_request.rb
dato-0.1.19 lib/dato/site/repo/upload_request.rb
dato-0.1.18 lib/dato/site/repo/upload_request.rb
dato-0.1.17 lib/dato/site/repo/upload_request.rb
dato-0.1.16 lib/dato/site/repo/upload_request.rb
dato-0.1.15 lib/dato/site/repo/upload_request.rb
dato-0.1.14 lib/dato/site/repo/upload_request.rb