Class: Wes::Data::API::Client
- Inherits:
-
Object
- Object
- Wes::Data::API::Client
- Defined in:
- lib/wes/data/api/client.rb
Instance Method Summary collapse
- #delete(path) ⇒ Object
- #get(path) ⇒ Object
- #post(path, options) ⇒ Object
- #put(path, options) ⇒ Object
Instance Method Details
#delete(path) ⇒ Object
23 24 25 26 |
# File 'lib/wes/data/api/client.rb', line 23 def delete(path) api_response = request.delete(path) response(api_response) end |
#get(path) ⇒ Object
8 9 10 11 |
# File 'lib/wes/data/api/client.rb', line 8 def get(path) api_response = request.get(path) response(api_response) end |
#post(path, options) ⇒ Object
13 14 15 16 |
# File 'lib/wes/data/api/client.rb', line 13 def post(path, ) api_response = request.post(path, ) response(api_response) end |
#put(path, options) ⇒ Object
18 19 20 21 |
# File 'lib/wes/data/api/client.rb', line 18 def put(path, ) api_response = request.put(path, ) response(api_response) end |