Sha256: ea524de969a08c5f132074d03d5fdc84b6685306b8e1908d57da425deec1f07b
Contents?: true
Size: 907 Bytes
Versions: 77
Compression:
Stored size: 907 Bytes
Contents
# encoding: UTF-8 # # 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' module GoodData class FilterApplyItem < DashboardItem EMPTY_OBJECT = { 'filterApplyItem' => { 'positionX' => 0, 'sizeY' => 200, 'sizeX' => 300, 'positionY' => 0 } } ASSIGNABLE_MEMBERS = DashboardItem::ASSIGNABLE_MEMBERS + [ ] class << self def create(tab, item) res = GoodData::FilterApply.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 end def initialize(tab, json) super end end end
Version data entries
77 entries across 77 versions & 1 rubygems