Module: Gems::Request

Included in:
Client
Defined in:
lib/gems/request.rb

Instance Method Summary collapse

Instance Method Details

#delete(path, data = {}, content_type = 'application/x-www-form-urlencoded', request_host = host) ⇒ Object


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

def delete(path, data = {}, content_type = 'application/x-www-form-urlencoded', request_host = host)
  request(:delete, path, data, content_type, request_host)
end

#get(path, data = {}, content_type = 'application/x-www-form-urlencoded', request_host = host) ⇒ Object


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

def get(path, data = {}, content_type = 'application/x-www-form-urlencoded', request_host = host)
  request(:get, path, data, content_type, request_host)
end

#post(path, data = {}, content_type = 'application/x-www-form-urlencoded', request_host = host) ⇒ Object


16
17
18
# File 'lib/gems/request.rb', line 16

def post(path, data = {}, content_type = 'application/x-www-form-urlencoded', request_host = host)
  request(:post, path, data, content_type, request_host)
end

#put(path, data = {}, content_type = 'application/x-www-form-urlencoded', request_host = host) ⇒ Object


20
21
22
# File 'lib/gems/request.rb', line 20

def put(path, data = {}, content_type = 'application/x-www-form-urlencoded', request_host = host)
  request(:put, path, data, content_type, request_host)
end