Class: AWS::S3::Connection::Options
- Inherits:
-
Hash
- Object
- Hash
- AWS::S3::Connection::Options
- Defined in:
- lib/aws/s3/connection.rb
Overview
:nodoc:
Constant Summary collapse
- VALID_OPTIONS =
[:access_key_id, :secret_access_key, :server, :port, :use_ssl, :persistent, :proxy, :path].freeze
Instance Method Summary collapse
- #connecting_through_proxy? ⇒ Boolean
-
#initialize(options = {}) ⇒ Options
constructor
A new instance of Options.
- #proxy_settings ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Options
Returns a new instance of Options.
257 258 259 260 261 262 |
# File 'lib/aws/s3/connection.rb', line 257 def initialize( = {}) super() validate() replace(:server => DEFAULT_HOST, :port => ([:use_ssl] ? 443 : 80)) merge!() end |
Instance Method Details
#connecting_through_proxy? ⇒ Boolean
264 265 266 |
# File 'lib/aws/s3/connection.rb', line 264 def connecting_through_proxy? !self[:proxy].nil? end |
#proxy_settings ⇒ Object
268 269 270 |
# File 'lib/aws/s3/connection.rb', line 268 def proxy_settings self[:proxy].values_at(:host, :port, :user, :password) end |