Sha256: 39a3039328637c7ce1646a5433465044364b003d44618369536c71a8475b0b67
Contents?: true
Size: 419 Bytes
Versions: 10
Compression:
Stored size: 419 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(&:to_hash) } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems