Class: QcloudVod::Http

Inherits:
Object
  • Object
show all
Includes:
HTTMultiParty, HTTParty
Defined in:
lib/qcloud_vod/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (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, options = {})
  request('GET', url, options)
end

#post(url, options = {}) ⇒ Object



20
21
22
# File 'lib/qcloud_vod/http.rb', line 20

def post(url, options = {})
  request('POST', url, options)
end