Class: QcloudVod::Sign
- Inherits:
-
Object
- Object
- QcloudVod::Sign
- Defined in:
- lib/qcloud_vod/sign.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #get_value(r_method, r_host, params, expireTime = current_time+86400) ⇒ Object
-
#initialize(config) ⇒ Sign
constructor
用于对请求进行签名.
Constructor Details
#initialize(config) ⇒ Sign
用于对请求进行签名
13 14 15 |
# File 'lib/qcloud_vod/sign.rb', line 13 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
8 9 10 |
# File 'lib/qcloud_vod/sign.rb', line 8 def config @config end |
Instance Method Details
#get_value(r_method, r_host, params, expireTime = current_time+86400) ⇒ Object
17 18 19 |
# File 'lib/qcloud_vod/sign.rb', line 17 def get_value(r_method,r_host,params,expireTime=current_time+86400) sign_base(r_method,r_host,params,expireTime) end |