Class: AWS::S3::Connection::Options
- Inherits:
-
Hash
- Object
- Hash
- AWS::S3::Connection::Options
- Defined in:
- lib/aws/s3/connection.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
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.
284 285 286 287 288 289 290 291 292 293 |
# File 'lib/aws/s3/connection.rb', line 284 def initialize( = {}) super() @options = validate! extract_proxy_settings! extract_persistent! extract_server! extract_port! extract_remainder! end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
283 284 285 |
# File 'lib/aws/s3/connection.rb', line 283 def @options end |
Class Method Details
.valid_options ⇒ Object
278 279 280 |
# File 'lib/aws/s3/connection.rb', line 278 def [:access_key_id, :secret_access_key, :server, :port, :use_ssl, :persistent, :proxy] end |
Instance Method Details
#connecting_through_proxy? ⇒ Boolean
295 296 297 |
# File 'lib/aws/s3/connection.rb', line 295 def connecting_through_proxy? !self[:proxy].nil? end |
#proxy_settings ⇒ Object
299 300 301 302 303 |
# File 'lib/aws/s3/connection.rb', line 299 def proxy_settings proxy_setting_keys.map do |proxy_key| self[:proxy][proxy_key] end end |