Sha256: bfec358158ac108a4fce9e4d9af9dde6e2661934c9b03ca5d593c539e06f312f

Contents?: true

Size: 615 Bytes

Versions: 13

Compression:

Stored size: 615 Bytes

Contents

GoodData::Model::ProjectBuilder.create("Test project") do |p|
    p.add_date_dimension("committed_on")

    p.add_dataset("repos") do |d|
        d.add_anchor("repo_id")
        d.add_label("name", :reference => "repo_id")
    end

    p.add_dataset("devs") do |d|
        d.add_anchor("dev_id")
        d.add_label("email", :reference => "dev_id")
    end

    p.add_dataset("commits") do |d|
        d.add_fact("lines_changed")
        d.add_date("committed_on", :dataset => "committed_on")
        d.add_reference("dev_id", :dataset => 'devs')
        d.add_reference("repo_id", :dataset => 'repos')
    end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gooddata-0.6.18 lib/templates/project/model/model.rb.erb
gooddata-0.6.17 lib/templates/project/model/model.rb.erb
gooddata-0.6.16 lib/templates/project/model/model.rb.erb
gooddata-0.6.15 lib/templates/project/model/model.rb.erb
gooddata-0.6.14 lib/templates/project/model/model.rb.erb
gooddata-0.6.13 lib/templates/project/model/model.rb.erb
gooddata-0.6.12 lib/templates/project/model/model.rb.erb
gooddata-0.6.11 lib/templates/project/model/model.rb.erb
gooddata-0.6.10 lib/templates/project/model/model.rb.erb
gooddata-0.6.9 lib/templates/project/model/model.rb.erb
gooddata-0.6.8 lib/templates/project/model/model.rb.erb
gooddata-0.6.7 lib/templates/project/model/model.rb.erb
gooddata-0.6.6 lib/templates/project/model/model.rb.erb