Sha256: dd6d580d2bc5abb91f8415dca53e31b0e6ddfc4f4ba3b13ab024295a4fd9c8f6

Contents?: true

Size: 478 Bytes

Versions: 38

Compression:

Stored size: 478 Bytes

Contents

FlightDistanceClass.class_eval do
  data_miner do
    schema Earth.database_options do
      string 'name'
      float  'distance'
      string 'distance_units'
    end
    
    import "a list of Brighter Planet-defined distance classes",
           :url => 'http://static.brighterplanet.com/science/data/transport/air/distance_classes/distance_classes.csv' do
      key   'name'
      store 'distance', :units_field_name => 'units', :to_units => :kilometres
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
earth-0.2.6 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.2.5 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.2.4 lib/earth/air/flight_distance_class/data_miner.rb
earth-ruby19-0.2.3 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.2.3 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.2.2 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.2.1 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.2.0 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.1.4 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.1.3 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.1.2 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.1.1 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.1.0 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.0.43 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.0.42 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.0.41 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.0.40 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.0.39 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.0.38 lib/earth/air/flight_distance_class/data_miner.rb
earth-0.0.37 lib/earth/air/flight_distance_class/data_miner.rb