Sha256: a87d3c2b8647b1458b5222e84d6285bb27a5ac82e3d9ec6b145d8bf575f4dc5d

Contents?: true

Size: 575 Bytes

Versions: 77

Compression:

Stored size: 575 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.

module GoodData
  module Model
    class TabBuilder
      def initialize(title)
        @title = title
        @stuff = []
      end

      def add_report(options = {})
        @stuff << { :type => :report }.merge(options)
      end

      def to_hash
        {
          :title => @title,
          :items => @stuff
        }
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
gooddata-2.1.0-java lib/gooddata/models/tab_builder.rb
gooddata-2.1.0 lib/gooddata/models/tab_builder.rb
gooddata-2.0.1-java lib/gooddata/models/tab_builder.rb
gooddata-2.0.1 lib/gooddata/models/tab_builder.rb
gooddata-2.0.0-java lib/gooddata/models/tab_builder.rb
gooddata-2.0.0 lib/gooddata/models/tab_builder.rb
gooddata-1.3.6-java lib/gooddata/models/tab_builder.rb
gooddata-1.3.6 lib/gooddata/models/tab_builder.rb
gooddata-1.3.5-java lib/gooddata/models/tab_builder.rb
gooddata-1.3.5 lib/gooddata/models/tab_builder.rb
gooddata-1.3.4-java lib/gooddata/models/tab_builder.rb
gooddata-1.3.4 lib/gooddata/models/tab_builder.rb
gooddata-1.3.3-java lib/gooddata/models/tab_builder.rb
gooddata-1.3.3 lib/gooddata/models/tab_builder.rb
gooddata-1.3.2-java lib/gooddata/models/tab_builder.rb
gooddata-1.3.2 lib/gooddata/models/tab_builder.rb
gooddata-1.3.1-java lib/gooddata/models/tab_builder.rb
gooddata-1.3.1 lib/gooddata/models/tab_builder.rb
gooddata-1.3.0-java lib/gooddata/models/tab_builder.rb
gooddata-1.3.0 lib/gooddata/models/tab_builder.rb