Module: BrighterPlanet::Motorcycle::Data

Defined in:
lib/motorcycle/data.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/motorcycle/data.rb', line 4

def self.included(base)
  base.data_miner do
    schema do
      string   'name'
      date     'date' # ?
      float    'fuel_efficiency'
      float    'annual_distance_estimate'
      float    'weekly_distance_estimate'
      date     'acquisition'
      date     'retirement'
    end
    
    process :run_data_miner_on_belongs_to_associations
  end
end