Class: Chicago::Schema::Builders::DimensionBuilder

Inherits:
TableBuilder
  • Object
show all
Defined in:
lib/chicago/schema/builders/dimension_builder.rb

Overview

API:

  • public

Instance Attribute Summary

Attributes inherited from TableBuilder

#column_builder

Instance Method Summary collapse

Methods inherited from TableBuilder

#initialize

Constructor Details

This class inherits a constructor from Chicago::Schema::Builders::TableBuilder

Instance Method Details

#build(name, &block) ⇒ Object

Builds a Dimension, given the name of the fact and a definition block.

Refer to the protected methods in this class to see how to define attributes of the dimension in the passed block.

API:

  • public



11
12
13
14
15
16
17
18
# File 'lib/chicago/schema/builders/dimension_builder.rb', line 11

def build(name, &block)
  @options = {
    :columns => [],
    :null_records => [],
    :identifiers => []
  }
  super Chicago::Schema::Dimension, name, &block
end