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