Sha256: e3676f52e3c6037db88c62087d03eb78ffb84d8493ce9d5817aff694739865b8

Contents?: true

Size: 374 Bytes

Versions: 19

Compression:

Stored size: 374 Bytes

Contents

# encoding: UTF-8

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

19 entries across 19 versions & 1 rubygems

Version Path
gooddata-0.6.20 lib/gooddata/models/tab_builder.rb
gooddata-0.6.19 lib/gooddata/models/tab_builder.rb
gooddata-0.6.18 lib/gooddata/models/tab_builder.rb
gooddata-0.6.17 lib/gooddata/models/tab_builder.rb
gooddata-0.6.16 lib/gooddata/models/tab_builder.rb
gooddata-0.6.15 lib/gooddata/models/tab_builder.rb
gooddata-0.6.14 lib/gooddata/models/tab_builder.rb
gooddata-0.6.13 lib/gooddata/models/tab_builder.rb
gooddata-0.6.12 lib/gooddata/models/tab_builder.rb
gooddata-0.6.11 lib/gooddata/models/tab_builder.rb
gooddata-0.6.10 lib/gooddata/models/tab_builder.rb
gooddata-0.6.9 lib/gooddata/models/tab_builder.rb
gooddata-0.6.8 lib/gooddata/models/tab_builder.rb
gooddata-0.6.7 lib/gooddata/models/tab_builder.rb
gooddata-0.6.6 lib/gooddata/models/tab_builder.rb
gooddata-0.6.5 lib/gooddata/models/tab_builder.rb
gooddata-0.6.4 lib/gooddata/models/tab_builder.rb
gooddata-0.6.3 lib/gooddata/models/tab_builder.rb
gooddata-0.6.2 lib/gooddata/models/tab_builder.rb