Class: Chicago::ETL::DatasetBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/chicago/etl/dataset_builder.rb

Overview

Provides convenience methods for defining source datasets.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dbObject (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