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') ⇒ Object



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

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

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



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

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

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



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

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

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



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

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