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.0.43 lib/earth/rail/rail_class.rb
earth-0.0.42 lib/earth/rail/rail_class.rb
earth-0.0.41 lib/earth/rail/rail_class.rb
earth-0.0.40 lib/earth/rail/rail_class.rb
earth-0.0.39 lib/earth/rail/rail_class.rb
earth-0.0.38 lib/earth/rail/rail_class.rb
earth-0.0.37 lib/earth/rail/rail_class.rb
earth-0.0.36 lib/earth/rail/rail_class.rb
earth-0.0.35 lib/earth/rail/rail_class.rb
earth-0.0.34 lib/earth/rail/rail_class.rb
earth-0.0.33 lib/earth/rail/rail_class.rb
earth-0.0.32 lib/earth/rail/rail_class.rb
earth-0.0.31 lib/earth/rail/rail_class.rb
earth-0.0.30 lib/earth/rail/rail_class.rb
earth-0.0.29 lib/earth/rail/rail_class.rb
earth-0.0.28 lib/earth/rail/rail_class.rb
earth-0.0.27 lib/earth/rail/rail_class.rb
earth-0.0.26 lib/earth/rail/rail_class.rb
earth-0.0.24 lib/earth/rail/rail_class.rb
earth-0.0.23 lib/earth/rail/rail_class.rb