Class: Wes::Data::API::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/wes/data/api/client.rb

Instance Method Summary collapse

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, options)
  api_response = request.post(path, options)
  response(api_response)
end

#put(path, options) ⇒ Object



18
19
20
21
# File 'lib/wes/data/api/client.rb', line 18

def put(path, options)
  api_response = request.put(path, options)
  response(api_response)
end