Module: BrighterPlanet::AutomobileTrip::Data

Defined in:
lib/automobile_trip/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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/automobile_trip/data.rb', line 4

def self.included(base)
  base.data_miner do
    schema do
      date    'date'
      string  'country_iso_3166_code'
      string  'make_name'
      string  'make_year_name'
      string  'make_model_name'
      string  'make_model_year_name'
      string  'make_model_year_variant_row_hash'
      string  'size_class_name'
      boolean 'hybridity'
      float   'urbanity_estimate'
      float   'hybridity_multiplier'
      float   'fuel_efficiency'
      float   'speed'
      float   'city_speed'
      float   'highway_speed'
      float   'duration'
      string  'origin'
      string  'destination'
      float   'distance'
      float   'fuel_use'
      string  'automobile_fuel_name'
      string  'mapquest_api_key'
    end
    process :run_data_miner_on_belongs_to_associations
  end
end