class GoodData::Model::DashboardBuilder
Public Class Methods
new(title)
click to toggle source
# File lib/gooddata/models/blueprint/dashboard_builder.rb, line 10 def initialize(title) @title = title @tabs = [] end
Public Instance Methods
add_tab(tab, &block)
click to toggle 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
to_hash()
click to toggle source
# File lib/gooddata/models/blueprint/dashboard_builder.rb, line 22 def to_hash { :name => @name, :tabs => @tabs.map(&:to_hash) } end