Module: BrighterPlanet::Flight::Data

Defined in:
lib/flight/data.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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
33
# File 'lib/flight/data.rb', line 6

def self.included(base)
  base.data_miner do
    schema do
      string   'origin_airport_id'
      string   'destination_airport_id'
      integer  'trips'
      integer  'emplanements_per_trip'
      float    'distance_estimate'
      string   'distance_class_id'
      string   'aircraft_id'
      string   'aircraft_class_id'
      string   'propulsion_id'
      string   'fuel_type_id'
      string   'airline_id'
      string   'seat_class_id'
      integer  'seats_estimate'
      float    'load_factor'
      string   'domesticity_id'
      date     'date'
      integer  'year'
      time     'time_of_day'
    end
    
    process "pull dependencies" do
      run_data_miner_on_belongs_to_associations
    end
  end
end