Class: Awshark::S3::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/awshark/s3/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject



6
7
8
# File 'lib/awshark/s3/configuration.rb', line 6

def client
  @client ||= Aws::S3::Client.new(region: region, signature_version: 'v4')
end

Instance Method Details

#regionObject



10
11
12
# File 'lib/awshark/s3/configuration.rb', line 10

def region
  Aws.config[:region] || 'eu-central-1'
end