Class: Aliyun::ESS::Base::RequestParams

Inherits:
Hash
  • Object
show all
Defined in:
lib/aliyun/ess/base.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(options, verb = :get)
  @options = options.inject({}) {|h, (k,v)| h[k.to_s.camelize] = v.to_s; h }
  @verb    = verb
  super()
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



75
76
77
# File 'lib/aliyun/ess/base.rb', line 75

def options
  @options
end

#verbObject (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(options)
end