Sha256: 9c1c5ee58bc38847517fcf76bc2742cb40d300343100329d0e05a61904abc963

Contents?: true

Size: 430 Bytes

Versions: 9

Compression:

Stored size: 430 Bytes

Contents

# encoding: UTF-8

module GoodData
  module Model
    class DashboardBuilder
      def initialize(title)
        @title = title
        @tabs = []
      end

      def add_tab(tab, &block)
        tb = TabBuilder.new(tab)
        block.call(tb)
        @tabs << tb
        tb
      end

      def to_hash
        {
          :name => @name,
          :tabs => @tabs.map { |tab| tab.to_hash }
        }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gooddata-0.6.10 lib/gooddata/models/dashboard_builder.rb
gooddata-0.6.9 lib/gooddata/models/dashboard_builder.rb
gooddata-0.6.8 lib/gooddata/models/dashboard_builder.rb
gooddata-0.6.7 lib/gooddata/models/dashboard_builder.rb
gooddata-0.6.6 lib/gooddata/models/dashboard_builder.rb
gooddata-0.6.5 lib/gooddata/models/dashboard_builder.rb
gooddata-0.6.4 lib/gooddata/models/dashboard_builder.rb
gooddata-0.6.3 lib/gooddata/models/dashboard_builder.rb
gooddata-0.6.2 lib/gooddata/models/dashboard_builder.rb