Class: Regolith::ServiceClient

Inherits:
Object
  • Object
show all
Defined in:
lib/regolith/service_client.rb

Class Method Summary collapse

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