class GoodData::Model::DashboardBuilder
Public Class Methods
Source
# File lib/gooddata/models/blueprint/dashboard_builder.rb, line 10 def initialize(title) @title = title @tabs = [] end
Public Instance Methods
Source
# File lib/gooddata/models/blueprint/dashboard_builder.rb, line 15 def add_tab(tab, &block) tb = TabBuilder.new(tab) block.call(tb) @tabs << tb tb end
Source
# File lib/gooddata/models/blueprint/dashboard_builder.rb, line 22 def to_hash { :name => @name, :tabs => @tabs.map(&:to_hash) } end