Sha256: 07255398e9139d0e3f815df6c8f43155e3f51917d21b9ded43f759cd18e3c912

Contents?: true

Size: 435 Bytes

Versions: 11

Compression:

Stored size: 435 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
earth-0.3.15 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.14 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.13 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.11 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.10 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.9 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.8 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.7 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.6 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.5 lib/earth/automobile/automobile_fuel_type.rb
earth-0.3.4 lib/earth/automobile/automobile_fuel_type.rb