Class: AWS::S3::Base::RequestOptions

Inherits:
Hash show all
Defined in:
lib/aws/s3/base.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Hash

#to_normalized_options, #to_normalized_options!, #to_query_string

Constructor Details

#initialize(options, verb = :get) ⇒ RequestOptions

Returns a new instance of RequestOptions



191
192
193
194
195
# File 'lib/aws/s3/base.rb', line 191

def initialize(options, verb = :get)
  @options = options.to_normalized_options
  @verb    = verb
  super()
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options



183
184
185
# File 'lib/aws/s3/base.rb', line 183

def options
  @options
end

#verbObject (readonly)

Returns the value of attribute verb



183
184
185
# File 'lib/aws/s3/base.rb', line 183

def verb
  @verb
end

Class Method Details

.process(*args, &block) ⇒ Object



186
187
188
# File 'lib/aws/s3/base.rb', line 186

def process(*args, &block)
  new(*args, &block).process!
end

Instance Method Details

#process!Object



197
198
199
200
# File 'lib/aws/s3/base.rb', line 197

def process!
  set_access_controls! if verb == :put
  replace(options)
end