Module: Skittles::Request

Defined in:
lib/skittles/request.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) delete(path, options = {}, headers = {}, raw = false)

Performs an HTTP DELETE request



23
24
25
# File 'lib/skittles/request.rb', line 23

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

- (Object) get(path, options = {}, headers = {}, raw = false)

Perform an HTTP GET request



8
9
10
# File 'lib/skittles/request.rb', line 8

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

- (Object) post(path, options = {}, headers = {}, raw = false)

Performs an HTTP POST request



13
14
15
# File 'lib/skittles/request.rb', line 13

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

- (Object) put(path, options = {}, headers = {}, raw = false)

Performs an HTTP PUT request



18
19
20
# File 'lib/skittles/request.rb', line 18

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