Class: QcloudVod::Http
- Inherits:
-
Object
- Object
- QcloudVod::Http
- Includes:
- HTTMultiParty, HTTParty
- Defined in:
- lib/qcloud_vod/http.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #get(url, options = {}) ⇒ Object
-
#initialize(config) ⇒ Http
constructor
A new instance of Http.
- #post(url, options = {}) ⇒ Object
Constructor Details
#initialize(config) ⇒ Http
Returns a new instance of Http.
12 13 14 |
# File 'lib/qcloud_vod/http.rb', line 12 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
10 11 12 |
# File 'lib/qcloud_vod/http.rb', line 10 def config @config end |
Instance Method Details
#get(url, options = {}) ⇒ Object
16 17 18 |
# File 'lib/qcloud_vod/http.rb', line 16 def get(url, = {}) request('GET', url, ) end |
#post(url, options = {}) ⇒ Object
20 21 22 |
# File 'lib/qcloud_vod/http.rb', line 20 def post(url, = {}) request('POST', url, ) end |