Module: Skittles::Request

Defined in:
lib/skittles/request.rb

Instance Method Summary collapse

Instance Method Details

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

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

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

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

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

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

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

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