Sha256: 74ddcdd8ee7d4886d596130703d4b4d94c7f211b77a5cc3c7a46f15f0f450b0f

Contents?: true

Size: 494 Bytes

Versions: 45

Compression:

Stored size: 494 Bytes

Contents

class AutomobileFuelType < ActiveRecord::Base
  set_primary_key :code
  
  has_many :automobiles, :foreign_key => 'fuel_type_id'
  
  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

45 entries across 45 versions & 2 rubygems

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