lib/gooddata/models/metadata/dashboard/report_item.rb in gooddata-0.6.49 vs lib/gooddata/models/metadata/dashboard/report_item.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_relative 'dashboard_item' require_relative '../../../helpers/global_helpers' @@ -46,10 +46,10 @@ def obj_uri(obj) obj.respond_to?(:uri) ? obj.uri : obj end def create(tab, item) - res = GoodData::ReportItem.new(tab, GoodData::Helpers.deep_dup(GoodData::Helpers.deep_stringify_keys(EMPTY_OBJECT))) + res = GoodData::ReportItem.new(tab, GoodData::Helpers.deep_dup(GoodData::Helpers.stringify_keys(EMPTY_OBJECT))) item.each do |k, v| res.send("#{k}=", v) if ASSIGNABLE_MEMBERS.include? k end res end