Sha256: 7cad9254e400ab56676136a4b080c0df8c6d6803d4348d16c954445a18bf6dcd

Contents?: true

Size: 515 Bytes

Versions: 45

Compression:

Stored size: 515 Bytes

Contents

class RailClass < ActiveRecord::Base
  set_primary_key :name
  
  has_many :rail_trips

  data_miner do
    tap "Brighter Planet's rail class data", Earth.taps_server
  end
  
  # speed is missing
  # https://brighterplanet.sifterapp.com/projects/30/issues/455
  falls_back_on :passengers => 25.06,
                :distance => 8.57.miles.to(:kilometres),
                :diesel_intensity => 0.05.gallons_per_mile.to(:litres_per_kilometre),
                :electricity_intensity => 8.89.miles.to(:kilometres)
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
earth-0.2.14 lib/earth/rail/rail_class.rb
earth-0.2.13 lib/earth/rail/rail_class.rb
earth-0.2.12 lib/earth/rail/rail_class.rb
earth-0.2.11 lib/earth/rail/rail_class.rb
earth-0.2.9 lib/earth/rail/rail_class.rb
earth-0.2.8 lib/earth/rail/rail_class.rb
earth-0.2.7 lib/earth/rail/rail_class.rb
earth-0.2.6 lib/earth/rail/rail_class.rb
earth-0.2.5 lib/earth/rail/rail_class.rb
earth-0.2.4 lib/earth/rail/rail_class.rb
earth-ruby19-0.2.3 lib/earth/rail/rail_class.rb
earth-0.2.3 lib/earth/rail/rail_class.rb
earth-0.2.2 lib/earth/rail/rail_class.rb
earth-0.2.1 lib/earth/rail/rail_class.rb
earth-0.2.0 lib/earth/rail/rail_class.rb
earth-0.1.4 lib/earth/rail/rail_class.rb
earth-0.1.3 lib/earth/rail/rail_class.rb
earth-0.1.2 lib/earth/rail/rail_class.rb
earth-0.1.1 lib/earth/rail/rail_class.rb
earth-0.1.0 lib/earth/rail/rail_class.rb