Sha256: 17c3e9e85974b8a26de02f44b333b37d162f66912fd977f705a7938dedbdd06c

Contents?: true

Size: 650 Bytes

Versions: 10

Compression:

Stored size: 650 Bytes

Contents

require 'earth/fuel'
class AutomobileMakeModelYear < ActiveRecord::Base
  self.primary_key = "name"
  
  # Need this so Automobile and AutomobileTrip can do characteristics[:make_model_year].automobile_fuel
  belongs_to :automobile_fuel, :foreign_key => 'fuel_code', :primary_key => 'code'
  
  col :name # make + model + year
  col :make_name
  col :model_name
  col :year,                    :type => :integer
  col :fuel_code
  col :hybridity,               :type => :boolean
  col :fuel_efficiency_city,    :type => :float
  col :fuel_efficiency_city_units
  col :fuel_efficiency_highway, :type => :float
  col :fuel_efficiency_highway_units
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.19 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.18 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.17 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.16 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.15 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.14 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.13 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.12 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.11 lib/earth/automobile/automobile_make_model_year.rb