Module: FullContact::Request
- Included in:
- API
- Defined in:
- lib/fullcontact/request.rb
Overview
Defines HTTP request methods
Instance Method Summary collapse
-
#delete(path, options = {}, raw = false) ⇒ Object
Perform an HTTP DELETE request.
-
#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
#delete(path, options = {}, raw = false) ⇒ Object
Perform an HTTP DELETE request
15 16 17 |
# File 'lib/fullcontact/request.rb', line 15 def delete(path, ={}, raw=false) request(:delete, path, , raw) end |
#get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request
5 6 7 |
# File 'lib/fullcontact/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/fullcontact/request.rb', line 10 def post(path, ={}, raw=false) request(:post, path, , raw) end |