Sha256: f6c9eef11a98a8bec2de849bb3c5cc65559deee0bc37c939f37064dfb4f7aaab
Contents?: true
Size: 691 Bytes
Versions: 4
Compression:
Stored size: 691 Bytes
Contents
class BusClass < ActiveRecord::Base set_primary_key :name has_many :bus_trips # https://brighterplanet.sifterapp.com/projects/30/issues/454 falls_back_on :distance => 5.45.miles.to(:kilometres), :passengers => 8.25, :speed => 19.67.miles.to(:kilometres), :diesel_intensity => 0.143.gallons_per_mile.to(:litres_per_kilometre), :alternative_fuels_intensity => 0.0517.gallons_per_mile.to(:litres_per_kilometre), :air_conditioning_emission_factor => 0.0203.pounds_per_mile.to(:kilograms_per_kilometre) data_miner do tap "Brighter Planet's sanitized bus class data", Earth.taps_server end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
earth-0.3.3 | lib/earth/bus/bus_class.rb |
earth-0.3.2 | lib/earth/bus/bus_class.rb |
earth-0.3.1 | lib/earth/bus/bus_class.rb |
earth-0.3.0 | lib/earth/bus/bus_class.rb |