lib/gooddata/rest/client.rb in gooddata-0.6.49 vs lib/gooddata/rest/client.rb in gooddata-0.6.50

- old
+ new

@@ -1,8 +1,8 @@ # encoding: UTF-8 # -# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved. +# Copyright (c) 2010-2017 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. require 'rest-client' @@ -196,9 +196,17 @@ @connection.connect(username, password, @opts) end def disconnect @connection.disconnect + end + + def warehouses(id = :all) + GoodData::DataWarehouse[id, client: self] + end + + def create_datawarehouse(opts = {}) + GoodData::DataWarehouse.create({ client: self }.merge(opts)) end ####################### # Factory stuff ######################