class DTK::Network::Client::Storage::Adapter::S3

Public Class Methods

new(data_hash) click to toggle source
# File lib/client/storage/adapters/s3.rb, line 7
def initialize(data_hash)
  @s3 = Aws::S3::Client.new(data_hash)
end

Public Instance Methods

delete(data_hash, opts = {}) click to toggle source
# File lib/client/storage/adapters/s3.rb, line 19
def delete(data_hash, opts = {})
  @s3.delete_object(data_hash, opts)
end
download(data_hash, opts = {}) click to toggle source
# File lib/client/storage/adapters/s3.rb, line 15
def download(data_hash, opts = {})
  @s3.get_object(data_hash, opts)
end
upload(data_hash) click to toggle source
# File lib/client/storage/adapters/s3.rb, line 11
def upload(data_hash)
  @s3.put_object(data_hash)
end