Class: Chicago::Schema::Builders::DimensionBuilder
- Inherits:
-
TableBuilder
- Object
- TableBuilder
- Chicago::Schema::Builders::DimensionBuilder
- Defined in:
- lib/chicago/schema/builders/dimension_builder.rb
Instance Attribute Summary
Attributes inherited from TableBuilder
Instance Method Summary collapse
-
#build(name, &block) ⇒ Object
Builds a Dimension, given the name of the fact and a definition block.
Methods inherited from TableBuilder
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.
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 |