method

private_url

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: GCSService
private_url(key, expires_in:, filename:, content_type:, disposition:, **) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/service/gcs_service.rb, line 148
      def private_url(key, expires_in,, filename,, content_type,, disposition,, **)
        args = {
          expires: expires_in,
          query: {
            "response-content-disposition" => content_disposition_with(type: disposition, filename: filename),
            "response-content-type" => content_type
          }
        }

        if @config[:iam]
          args[:issuer] = issuer
          args[:signer] = signer
        end

        file_for(key).signed_url(**args)
      end
Register or log in to add new notes.