Class: Regolith::ServiceClient
- Inherits:
-
Object
- Object
- Regolith::ServiceClient
- Defined in:
- lib/regolith/service_client.rb
Class Method Summary collapse
- .delete(service_name, path) ⇒ Object
- .get(service_name, path) ⇒ Object
- .post(service_name, path, body = nil) ⇒ Object
- .put(service_name, path, body = nil) ⇒ Object
Class Method Details
.delete(service_name, path) ⇒ Object
17 18 19 |
# File 'lib/regolith/service_client.rb', line 17 def delete(service_name, path) make_request(service_name, :delete, path) end |
.get(service_name, path) ⇒ Object
5 6 7 |
# File 'lib/regolith/service_client.rb', line 5 def get(service_name, path) make_request(service_name, :get, path) end |
.post(service_name, path, body = nil) ⇒ Object
9 10 11 |
# File 'lib/regolith/service_client.rb', line 9 def post(service_name, path, body = nil) make_request(service_name, :post, path, body) end |
.put(service_name, path, body = nil) ⇒ Object
13 14 15 |
# File 'lib/regolith/service_client.rb', line 13 def put(service_name, path, body = nil) make_request(service_name, :put, path, body) end |