Method: RightAws::S3#initialize
- Defined in:
- lib/s3/right_s3.rb
#initialize(aws_access_key_id = nil, aws_secret_access_key = nil, params = {}) ⇒ S3
Create a new handle to an S3 account. All handles share the same per process or per thread HTTP connection to Amazon S3. Each handle is for a specific account. The params
are passed through as-is to RightAws::S3Interface.new
Params is a hash:
{:server => 's3.amazonaws.com' # Amazon service host: 's3.amazonaws.com'(default)
:port => 443 # Amazon service port: 80 or 443(default)
:protocol => 'https' # Amazon service protocol: 'http' or 'https'(default)
:logger => Logger Object} # Logger instance: logs to STDOUT if omitted }
63 64 65 |
# File 'lib/s3/right_s3.rb', line 63 def initialize(aws_access_key_id=nil, aws_secret_access_key=nil, params={}) @interface = S3Interface.new(aws_access_key_id, aws_secret_access_key, params) end |