method
new
v5.2.3 -
Show latest stable
- Class:
ActiveStorage::Service::S3Service
new(bucket:, upload: {}, **options)public
No documentation available.
# File activestorage/lib/active_storage/service/s3_service.rb, line 12
def initialize(bucket,, upload: {}, **options)
@client = Aws::S3::Resource.new(**options)
@bucket = @client.bucket(bucket)
@upload_options = upload
end