Class: AWS::S3::Connection::Options

Inherits:
Hash
  • Object
show all
Defined in:
lib/aws/s3/connection.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Options

Returns a new instance of Options.



259
260
261
262
263
264
265
266
267
268
# File 'lib/aws/s3/connection.rb', line 259

def initialize(options = {})
  super()
  @options = options
  validate!
  extract_proxy_settings!
  extract_persistent!
  extract_server!
  extract_port!
  extract_remainder!
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



258
259
260
# File 'lib/aws/s3/connection.rb', line 258

def options
  @options
end

Class Method Details

.valid_optionsObject



253
254
255
# File 'lib/aws/s3/connection.rb', line 253

def valid_options
  [:access_key_id, :secret_access_key, :server, :port, :use_ssl, :persistent, :proxy]
end

Instance Method Details

#connecting_through_proxy?Boolean

Returns:

  • (Boolean)


270
271
272
# File 'lib/aws/s3/connection.rb', line 270

def connecting_through_proxy?
  !self[:proxy].nil?
end

#proxy_settingsObject



274
275
276
277
278
# File 'lib/aws/s3/connection.rb', line 274

def proxy_settings
  proxy_setting_keys.map do |proxy_key| 
    self[:proxy][proxy_key]
  end
end