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



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

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



4
5
6
# File 'lib/skittles/request.rb', line 4

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



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

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



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

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