class Cucoo::ApiDriver

Public Instance Methods

delete(url, body=nil) click to toggle source
# File lib/cucoo/api_driver.rb, line 24
def delete(url, body=nil)
  @response = self.class.delete(url, {body: body})
end
get(url) click to toggle source
# File lib/cucoo/api_driver.rb, line 28
def get(url)
  @response = self.class.get(url)
end
post(url, body=nil) click to toggle source
# File lib/cucoo/api_driver.rb, line 8
def post(url, body=nil)
  @response = self.class.post(url, {body: body})
end
post_raw(url, body=nil) click to toggle source
# File lib/cucoo/api_driver.rb, line 12
def post_raw(url, body=nil)
  @response = self.class.post(url, {body: body.to_json})
end
post_with_header(url, headers = {}, body=nil) click to toggle source
# File lib/cucoo/api_driver.rb, line 16
def post_with_header(url, headers = {}, body=nil)
  @response = self.class.post(url, {body: body, headers: headers})
end
put(url, body=nil) click to toggle source
# File lib/cucoo/api_driver.rb, line 20
def put(url, body=nil)
  @response = self.class.put(url, {body: body})
end
response() click to toggle source
# File lib/cucoo/api_driver.rb, line 32
def response
  @response
end