lib/gooddata/client.rb in gooddata-0.5.1 vs lib/gooddata/client.rb in gooddata-0.5.2

- old
+ new

@@ -127,12 +127,12 @@ # # * +path+ - The HTTP path on the GoodData server (must be prefixed with a forward slash) # === Examples # # GoodData.get '/gdc/projects' - def get(path) - connection.get(path) + def get(path, options = {}) + connection.get(path, options) end # Performs a HTTP POST request. # # Retuns the JSON response formatted as a Hash object. @@ -143,12 +143,12 @@ # * +data+ - The payload data in the format of a Hash object # # === Examples # # GoodData.post '/gdc/projects', { ... } - def post(path, data) - connection.post path, data + def post(path, data, options = {}) + connection.post path, data, options end # Performs a HTTP DELETE request. # # Retuns the JSON response formatted as a Hash object. @@ -158,11 +158,11 @@ # * +path+ - The HTTP path on the GoodData server (must be prefixed with a forward slash) # # === Examples # # GoodData.delete '/gdc/project/1' - def delete(path) - connection.delete path + def delete(path, options = {}) + connection.delete path, options end def test_login connection.connect! connection.logged_in?