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

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

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RequestOptions.



211
212
213
214
215
# File 'lib/aws/s3/base.rb', line 211

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.



203
204
205
# File 'lib/aws/s3/base.rb', line 203

def options
  @options
end

#verbObject (readonly)

Returns the value of attribute verb.



203
204
205
# File 'lib/aws/s3/base.rb', line 203

def verb
  @verb
end

Class Method Details

.process(*args, &block) ⇒ Object



206
207
208
# File 'lib/aws/s3/base.rb', line 206

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

Instance Method Details

#process!Object



217
218
219
220
# File 'lib/aws/s3/base.rb', line 217

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