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-1.2.1-java lib/gooddata/models/tab_builder.rb
gooddata-1.2.1 lib/gooddata/models/tab_builder.rb
gooddata-1.2.0-java lib/gooddata/models/tab_builder.rb
gooddata-1.2.0 lib/gooddata/models/tab_builder.rb
gooddata-1.1.0-java lib/gooddata/models/tab_builder.rb
gooddata-1.1.0 lib/gooddata/models/tab_builder.rb
gooddata-1.0.2-java lib/gooddata/models/tab_builder.rb
gooddata-1.0.2 lib/gooddata/models/tab_builder.rb
gooddata-1.0.1 lib/gooddata/models/tab_builder.rb
gooddata-1.0.1-java lib/gooddata/models/tab_builder.rb
gooddata-1.0.0-java lib/gooddata/models/tab_builder.rb
gooddata-1.0.0 lib/gooddata/models/tab_builder.rb
gooddata-0.6.54 lib/gooddata/models/tab_builder.rb
gooddata-0.6.53 lib/gooddata/models/tab_builder.rb
gooddata-0.6.52 lib/gooddata/models/tab_builder.rb
gooddata-0.6.51 lib/gooddata/models/tab_builder.rb
gooddata-0.6.50 lib/gooddata/models/tab_builder.rb