Module: Makura::HTTPMethods

Included in:
Database, Server
Defined in:
lib/makura/http_methods.rb

Instance Method Summary collapse

Instance Method Details

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



3
4
5
# File 'lib/makura/http_methods.rb', line 3

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

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



7
8
9
# File 'lib/makura/http_methods.rb', line 7

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

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



11
12
13
# File 'lib/makura/http_methods.rb', line 11

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

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



15
16
17
# File 'lib/makura/http_methods.rb', line 15

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