lib/gooddata/models/profile.rb in gooddata-0.6.49 vs lib/gooddata/models/profile.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 'pmap' @@ -419,8 +419,16 @@ wire, rb = vals tmp[rb] = tmp[wire] tmp.delete(wire) end tmp + end + + def create_channel + GoodData::ChannelConfiguration.create(to: email, title: email, client: client) + end + + def channels + GoodData::ChannelConfiguration.all(client: client) end end end