module Shrine::Storage::S3::ClientSideEncryption

  1. lib/shrine/storage/s3.rb

Adds support for Aws::S3::Encryption::Client.

Methods

Public Class

  1. new

Public Instance

  1. encryption_client

Attributes

Public Class methods

new(client: nil, **options)

Save the encryption client and continue initialization with normal client.

[show source]
    # File lib/shrine/storage/s3.rb
355 def initialize(client: nil, **options)
356   return super unless client.class.name.start_with?("Aws::S3::Encryption")
357 
358   super(client: client.client, **options)
359   @encryption_client = client
360 end