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

Inherits:
Hash
  • Object
show all
Defined in:
lib/aws-matt/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.



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

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.



182
183
184
# File 'lib/aws-matt/s3/base.rb', line 182

def options
  @options
end

#verbObject (readonly)

Returns the value of attribute verb.



182
183
184
# File 'lib/aws-matt/s3/base.rb', line 182

def verb
  @verb
end

Class Method Details

.process(*args, &block) ⇒ Object



185
186
187
# File 'lib/aws-matt/s3/base.rb', line 185

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

Instance Method Details

#process!Object



196
197
198
199
# File 'lib/aws-matt/s3/base.rb', line 196

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