Sha256: c310b385d3437aafc6839a85e758bbdc2df1b8be8c7a68dabba63fa7aadf8ddf

Contents?: true

Size: 625 Bytes

Versions: 8

Compression:

Stored size: 625 Bytes

Contents

class AutomobileMakeModelYear < ActiveRecord::Base
  set_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

8 entries across 8 versions & 1 rubygems

Version Path
earth-0.11.7 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.6 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.5 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.4 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.3 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.2 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.1 lib/earth/automobile/automobile_make_model_year.rb
earth-0.11.0 lib/earth/automobile/automobile_make_model_year.rb