Class: Aliyun::ESS::Base::RequestParams
- Inherits:
-
Hash
- Object
- Hash
- Aliyun::ESS::Base::RequestParams
- Defined in:
- lib/aliyun/ess/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) ⇒ RequestParams
constructor
A new instance of RequestParams.
- #process! ⇒ Object
Constructor Details
#initialize(options, verb = :get) ⇒ RequestParams
Returns a new instance of RequestParams.
83 84 85 86 87 |
# File 'lib/aliyun/ess/base.rb', line 83 def initialize(, verb = :get) @options = .inject({}) {|h, (k,v)| h[k.to_s.camelize] = v.to_s; h } @verb = verb super() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
75 76 77 |
# File 'lib/aliyun/ess/base.rb', line 75 def @options end |
#verb ⇒ Object (readonly)
Returns the value of attribute verb.
75 76 77 |
# File 'lib/aliyun/ess/base.rb', line 75 def verb @verb end |
Class Method Details
.process(*args, &block) ⇒ Object
78 79 80 |
# File 'lib/aliyun/ess/base.rb', line 78 def process(*args, &block) new(*args, &block).process! end |
Instance Method Details
#process! ⇒ Object
89 90 91 |
# File 'lib/aliyun/ess/base.rb', line 89 def process! replace() end |