Module: WOTC::Request

Included in:
API
Defined in:
lib/wotc/request.rb

Overview

Defines HTTP request methods

Instance Method Summary collapse

Instance Method Details

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

HTTP DELETE request



22
23
24
# File 'lib/wotc/request.rb', line 22

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

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

HTTP GET request



7
8
9
# File 'lib/wotc/request.rb', line 7

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

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

HTTP POST request



12
13
14
# File 'lib/wotc/request.rb', line 12

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

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

HTTP PUT request



17
18
19
# File 'lib/wotc/request.rb', line 17

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