Module: Admincredible::Request

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

Instance Method Summary collapse

Instance Method Details

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

Perform an HTTP DELETE request



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

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

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

Perform an HTTP GET request



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

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

#post(path, options = {}, path_options = {}) ⇒ Object

Perform an HTTP POST request



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

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

#put(path, options = {}, path_options = {}) ⇒ Object

Perform an HTTP PUT request



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

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