Sha256: 394fff98358da85937121f143bf9da4593be16b50d63e1ad3cd1eb1e57c6cf0e

Contents?: true

Size: 469 Bytes

Versions: 5

Compression:

Stored size: 469 Bytes

Contents

# DEPRECATED - use AutomobileFuel
class AutomobileFuelType < ActiveRecord::Base
  set_primary_key :code
  
  scope :ordered, :order => 'name'
  
  falls_back_on :emission_factor => 20.781.pounds_per_gallon.to(:kilograms_per_litre) # https://brighterplanet.sifterapp.com/projects/30/issues/428
  
  data_miner do
    tap "Brighter Planet's sanitized automobile fuel type data", Earth.taps_server
  end
  
  CODES = {
    :electricity => 'El',
    :diesel => 'D'
  }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.4.4 lib/earth/automobile/automobile_fuel_type.rb
earth-0.4.3 lib/earth/automobile/automobile_fuel_type.rb
earth-0.4.2 lib/earth/automobile/automobile_fuel_type.rb
earth-0.4.1 lib/earth/automobile/automobile_fuel_type.rb
earth-0.4.0 lib/earth/automobile/automobile_fuel_type.rb