Class: S3::MultipartAbortRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/s3/multipart_abort_request.rb

Constant Summary

Constants inherited from Request

Request::AWS_ALGORITHM, Request::AWS_REQUEST, Request::SERVICE, Request::UNSIGNED_PAYLOAD

Instance Method Summary collapse

Methods inherited from Request

#initialize

Constructor Details

This class inherits a constructor from S3::Request

Instance Method Details

#submit(bucket:, key:, upload_id:) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/s3/multipart_abort_request.rb', line 3

def submit( bucket:, key:, upload_id: )
  path = "/#{ bucket }/#{ Helpers.encode_key( key ) }"
  query = Helpers.build_query_string( 'uploadId' => upload_id )

  response = delete( path, query: query )

  build_result( response, TrueClass ) do
    true
  end
end