Class: Aliyun::OSS::Base::RequestOptions
- Defined in:
- lib/aliyun/oss/base.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options, verb = :get) ⇒ RequestOptions
constructor
A new instance of RequestOptions.
- #process! ⇒ Object
Methods inherited from Hash
#extractable_options?, #to_normalized_options, #to_normalized_options!, #to_query_string
Constructor Details
#initialize(options, verb = :get) ⇒ RequestOptions
Returns a new instance of RequestOptions.
192 193 194 195 196 |
# File 'lib/aliyun/oss/base.rb', line 192 def initialize(, verb = :get) @options = . @verb = verb super() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
184 185 186 |
# File 'lib/aliyun/oss/base.rb', line 184 def @options end |
#verb ⇒ Object (readonly)
Returns the value of attribute verb.
184 185 186 |
# File 'lib/aliyun/oss/base.rb', line 184 def verb @verb end |
Class Method Details
.process(*args, &block) ⇒ Object
187 188 189 |
# File 'lib/aliyun/oss/base.rb', line 187 def process(*args, &block) new(*args, &block).process! end |
Instance Method Details
#process! ⇒ Object
198 199 200 201 |
# File 'lib/aliyun/oss/base.rb', line 198 def process! set_access_controls! if verb == :put replace() end |