class GoodData::Model::TabBuilder

Public Class Methods

new(title) click to toggle source
# File lib/gooddata/models/tab_builder.rb, line 10
def initialize(title)
  @title = title
  @stuff = []
end

Public Instance Methods

add_report(options = {}) click to toggle source
# File lib/gooddata/models/tab_builder.rb, line 15
def add_report(options = {})
  @stuff << { :type => :report }.merge(options)
end
to_hash() click to toggle source
# File lib/gooddata/models/tab_builder.rb, line 19
def to_hash
  {
    :title => @title,
    :items => @stuff
  }
end