Module: Douban::Request

Defined in:
lib/douban_api/request.rb

Overview

Defines HTTP request methods

Instance Method Summary collapse

Instance Method Details

#delete(path, options = {}, raw = false) ⇒ Object

Perform an HTTP DELETE request



21
22
23
# File 'lib/douban_api/request.rb', line 21

def delete(path, options={}, raw=false)
  request(:delete, path, options, raw)
end

#get(path, options = {}, raw = false) ⇒ Object

Perform an HTTP GET request



6
7
8
# File 'lib/douban_api/request.rb', line 6

def get(path, options={}, raw=false)
  request(:get, path, options, raw)
end

#post(path, options = {}, raw = false) ⇒ Object

Perform an HTTP POST request



11
12
13
# File 'lib/douban_api/request.rb', line 11

def post(path, options={}, raw=false)
  request(:post, path, options, raw)
end

#put(path, options = {}, raw = false) ⇒ Object

Perform an HTTP PUT request



16
17
18
# File 'lib/douban_api/request.rb', line 16

def put(path, options={}, raw=false)
  request(:put, path, options, raw)
end