Module: Flattr::Request
- Included in:
- Client
- Defined in:
- lib/flattr/request.rb,
lib/flattr/request/oauth2.rb
Overview
Defines HTTP request methods
Defined Under Namespace
Classes: FlattrOAuth2
Instance Method Summary collapse
-
#delete(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request.
-
#get(path, params = {}, options = {}) ⇒ Object
Perform an HTTP GET request.
-
#patch(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PATCH request.
-
#post(path, params = {}, options = {}) ⇒ Object
Perform an HTTP POST request.
-
#put(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request.
Instance Method Details
#delete(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request
7 8 9 |
# File 'lib/flattr/request.rb', line 7 def delete(path, params={}, ={}) request(:delete, path, params, ) end |
#get(path, params = {}, options = {}) ⇒ Object
Perform an HTTP GET request
12 13 14 |
# File 'lib/flattr/request.rb', line 12 def get(path, params={}, ={}) request(:get, path, params, ) end |
#patch(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PATCH request
27 28 29 |
# File 'lib/flattr/request.rb', line 27 def patch(path, params={}, ={}) request(:patch, path, params, ) end |
#post(path, params = {}, options = {}) ⇒ Object
Perform an HTTP POST request
17 18 19 |
# File 'lib/flattr/request.rb', line 17 def post(path, params={}, ={}) request(:post, path, params, ) end |
#put(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request
22 23 24 |
# File 'lib/flattr/request.rb', line 22 def put(path, params={}, ={}) request(:put, path, params, ) end |