Module: Admincredible::Request
- Included in:
- Client
- Defined in:
- lib/admincredible/request.rb
Instance Method Summary collapse
-
#delete(path, options = {}) ⇒ Object
Perform an HTTP DELETE request.
-
#get(path, options = {}) ⇒ Object
Perform an HTTP GET request.
-
#post(path, options = {}, path_options = {}) ⇒ Object
Perform an HTTP POST request.
-
#put(path, options = {}, path_options = {}) ⇒ Object
Perform an HTTP PUT request.
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, ={}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Object
Perform an HTTP GET request
4 5 6 |
# File 'lib/admincredible/request.rb', line 4 def get(path, ={}) request(:get, path, ) 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, ={}, ={}) request(:post, path, , ) 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, ={}, ={}) request(:put, path, , ) end |