Module: Disqussion::Request
- Defined in:
- lib/disqussion/request.rb
Overview
Defines HTTP request methods
Instance Method Summary collapse
-
#get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request.
-
#post(path, options = {}, raw = false) ⇒ Object
Perform an HTTP POST request.
Instance Method Details
#get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request
5 6 7 |
# File 'lib/disqussion/request.rb', line 5 def get(path, ={}, raw=false) request(:get, path, , raw) end |
#post(path, options = {}, raw = false) ⇒ Object
Perform an HTTP POST request
10 11 12 |
# File 'lib/disqussion/request.rb', line 10 def post(path, ={}, raw=false) request(:post, path, , raw) end |