Class: Chicago::ETL::DatasetBuilder
- Inherits:
-
Object
- Object
- Chicago::ETL::DatasetBuilder
- Defined in:
- lib/chicago/etl/dataset_builder.rb
Overview
Provides convenience methods for defining source datasets.
Instance Attribute Summary collapse
-
#db ⇒ Object
readonly
Returns the value of attribute db.
Instance Method Summary collapse
- #build(&block) ⇒ Object private
-
#initialize(db) ⇒ DatasetBuilder
constructor
private
A new instance of DatasetBuilder.
Constructor Details
#initialize(db) ⇒ DatasetBuilder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DatasetBuilder.
8 9 10 |
# File 'lib/chicago/etl/dataset_builder.rb', line 8 def initialize(db) @db = db end |
Instance Attribute Details
#db ⇒ Object (readonly)
Returns the value of attribute db.
5 6 7 |
# File 'lib/chicago/etl/dataset_builder.rb', line 5 def db @db end |
Instance Method Details
#build(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/chicago/etl/dataset_builder.rb', line 13 def build(&block) instance_eval(&block) end |