Sha256: 22bc1b0531de22f5abcf6adde4a9bc6ce550b511f30b16b31a5b477660cafcb5

Contents?: true

Size: 573 Bytes

Versions: 10

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

module PurlFetcher
  class Client
    DirectUploadResponse = Data.define(:id, :key, :checksum, :byte_size, :content_type,
                                      :filename, :metadata, :created_at, :direct_upload,
                                      :signed_id, :service_name) do
                                        def with_filename(filename)
                                          self.class.new(**deconstruct_keys(nil).merge(filename:))
                                        end
                                      end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
purl_fetcher-client-1.5.4 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.5.3 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.5.2 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.5.1 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.5.0 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.4.1 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.4.0 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.2.1 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.2.0 lib/purl_fetcher/client/direct_upload_response.rb
purl_fetcher-client-1.1.0 lib/purl_fetcher/client/direct_upload_response.rb