class ActiveStorage::Service::S3Service

def private_url(key, expires_in:, filename:, disposition:, content_type:, **client_opts)

def private_url(key, expires_in:, filename:, disposition:, content_type:, **client_opts)
  object_for(key).presigned_url :get, expires_in: expires_in.to_i,
    response_content_disposition: content_disposition_with(type: disposition, filename: filename),
    response_content_type: content_type, **client_opts
end