Module: Elmas::Request
- Included in:
- API
- Defined in:
- lib/elmas/request.rb
Overview
Defines HTTP request methods
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 = {}) ⇒ Object
Perform an HTTP POST request.
-
#put(path, options = {}) ⇒ Object
Perform an HTTP PUT request.
Instance Method Details
#delete(path, options = {}) ⇒ Object
Perform an HTTP DELETE request
22 23 24 |
# File 'lib/elmas/request.rb', line 22 def delete(path, = {}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Object
Perform an HTTP GET request
7 8 9 |
# File 'lib/elmas/request.rb', line 7 def get(path, = {}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Object
Perform an HTTP POST request
12 13 14 |
# File 'lib/elmas/request.rb', line 12 def post(path, = {}) request(:post, path, ) end |
#put(path, options = {}) ⇒ Object
Perform an HTTP PUT request
17 18 19 |
# File 'lib/elmas/request.rb', line 17 def put(path, = {}) request(:put, path, ) end |